mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-29 15:11:09 +02:00
htlcswitch: expose custom records on intercepted packet
This commit is contained in:
@@ -4,6 +4,7 @@ import (
|
||||
"github.com/lightningnetwork/lnd/channeldb"
|
||||
"github.com/lightningnetwork/lnd/htlcswitch/hop"
|
||||
"github.com/lightningnetwork/lnd/lnwire"
|
||||
"github.com/lightningnetwork/lnd/record"
|
||||
)
|
||||
|
||||
// htlcPacket is a wrapper around htlc lnwire update, which adds additional
|
||||
@@ -91,6 +92,10 @@ type htlcPacket struct {
|
||||
// will be extraced from the hop payload recevived by the incoming
|
||||
// link.
|
||||
outgoingTimeout uint32
|
||||
|
||||
// customRecords are user-defined records in the custom type range that
|
||||
// were included in the payload.
|
||||
customRecords record.CustomSet
|
||||
}
|
||||
|
||||
// inKey returns the circuit key used to identify the incoming htlc.
|
||||
|
Reference in New Issue
Block a user