htlcswitch: expose additional fields for intercepted packets

This commit is contained in:
Joost Jager committed 2020-06-27 11:00:44 +02:00
1 parent 74db43282c
commit 363142de33
7 files changed
+253 -161

No files matched your search

+3
View File
@@ -121,9 +121,12 @@ func (f *interceptedForward) Packet() InterceptedPacket {
ChanID: f.packet.incomingChanID,
HtlcID: f.packet.incomingHTLCID,
},
OutgoingChanID: f.packet.outgoingChanID,
Hash: f.htlc.PaymentHash,
OutgoingExpiry: f.htlc.Expiry,
OutgoingAmount: f.htlc.Amount,
IncomingAmount: f.packet.incomingAmount,
IncomingExpiry: f.packet.incomingTimeout,
}
}