mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-20 04:21:37 +02:00
htlcswitch,rpc: expose onion blob for intercepts
This commit is contained in:
@@ -128,6 +128,7 @@ func (f *interceptedForward) Packet() InterceptedPacket {
|
||||
IncomingAmount: f.packet.incomingAmount,
|
||||
IncomingExpiry: f.packet.incomingTimeout,
|
||||
CustomRecords: f.packet.customRecords,
|
||||
OnionBlob: f.htlc.OnionBlob,
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -231,6 +231,9 @@ type InterceptedPacket struct {
|
||||
// CustomRecords are user-defined records in the custom type range that
|
||||
// were included in the payload.
|
||||
CustomRecords record.CustomSet
|
||||
|
||||
// OnionBlob is the onion packet for the next hop
|
||||
OnionBlob [lnwire.OnionPacketSize]byte
|
||||
}
|
||||
|
||||
// InterceptedForward is passed to the ForwardInterceptor for every forwarded
|
||||
|
Reference in New Issue
Block a user