mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-27 14:11:04 +02:00
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:
committed by
Olaoluwa Osuntokun
parent
b27f401ccc
commit
43f8bf288f
@@ -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