htlcswitch: expose additional fields for intercepted packets
This commit is contained in:
7 files changed
+253
-161
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user