htlcswitch+channeldb: add htlcidx to fwding log
In this commit we add htlcindex field to the forwardingevent struct, which is persisted alongside the other event fields.
This commit is contained in:
3 files changed
+180
-3
No files matched your search
@@ -3074,6 +3074,12 @@ func (s *Switch) handlePacketSettle(packet *htlcPacket) error {
|
||||
OutgoingChanID: circuit.Outgoing.ChanID,
|
||||
AmtIn: circuit.IncomingAmount,
|
||||
AmtOut: circuit.OutgoingAmount,
|
||||
IncomingHtlcID: fn.Some(
|
||||
circuit.Incoming.HtlcID,
|
||||
),
|
||||
OutgoingHtlcID: fn.Some(
|
||||
circuit.Outgoing.HtlcID,
|
||||
),
|
||||
},
|
||||
)
|
||||
s.fwdEventMtx.Unlock()
|
||||
|
||||
Reference in new issue
Block a user