mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-28 22:50:58 +02:00
htlcswitch: add new incoming+outgoing timeout fields to htlcPacket
This commit is contained in:
@@ -80,6 +80,15 @@ type htlcPacket struct {
|
||||
// circuit holds a reference to an Add's circuit which is persisted in
|
||||
// the switch during successful forwarding.
|
||||
circuit *PaymentCircuit
|
||||
|
||||
// incomingTimeout is the timeout that the incoming HTLC carried. This
|
||||
// is the timeout of the HTLC applied to the incoming link.
|
||||
incomingTimeout uint32
|
||||
|
||||
// outgoingTimeout is the timeout of the proposed outgoing HTLC. This
|
||||
// will be extraced from the hop payload recevived by the incoming
|
||||
// link.
|
||||
outgoingTimeout uint32
|
||||
}
|
||||
|
||||
// inKey returns the circuit key used to identify the incoming htlc.
|
||||
|
Reference in New Issue
Block a user