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

+6 -3
View File
@@ -157,9 +157,12 @@ func (r *forwardInterceptor) holdAndForwardToClient(
ChanId: inKey.ChanID.ToUint64(),
HtlcId: inKey.HtlcID,
},
PaymentHash: htlc.Hash[:],
OutgoingAmountMsat: uint64(htlc.OutgoingAmount),
OutgoingExpiry: htlc.OutgoingExpiry,
OutgoingRequestedChanId: htlc.OutgoingChanID.ToUint64(),
PaymentHash: htlc.Hash[:],
OutgoingAmountMsat: uint64(htlc.OutgoingAmount),
OutgoingExpiry: htlc.OutgoingExpiry,
IncomingAmountMsat: uint64(htlc.IncomingAmount),
IncomingExpiry: htlc.IncomingExpiry,
}
return r.stream.Send(interceptionRequest)