mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-05-13 13:20:08 +02:00
Merge pull request #3018 from cryptagoras/log-htlcsuccess
htlcswitch/switch: log successfully forwarded HTLCs
This commit is contained in:
commit
704ce02712
@ -1245,6 +1245,11 @@ func (s *Switch) handlePacketForward(packet *htlcPacket) error {
|
|||||||
// fully settles?
|
// fully settles?
|
||||||
localHTLC := packet.incomingChanID == hop.Source
|
localHTLC := packet.incomingChanID == hop.Source
|
||||||
if !localHTLC {
|
if !localHTLC {
|
||||||
|
log.Infof("Forwarded HTLC(%x) of %v (fee: %v) "+
|
||||||
|
"from IncomingChanID(%v) to OutgoingChanID(%v)",
|
||||||
|
circuit.PaymentHash[:], circuit.OutgoingAmount,
|
||||||
|
circuit.IncomingAmount-circuit.OutgoingAmount,
|
||||||
|
circuit.Incoming.ChanID, circuit.Outgoing.ChanID)
|
||||||
s.fwdEventMtx.Lock()
|
s.fwdEventMtx.Lock()
|
||||||
s.pendingFwdingEvents = append(
|
s.pendingFwdingEvents = append(
|
||||||
s.pendingFwdingEvents,
|
s.pendingFwdingEvents,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user