mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-20 13:04:28 +02:00
htlcswitch: when generating routes in test payload for last hop in absolute timeout
This commit is contained in:
@@ -361,9 +361,9 @@ func generateHops(payAmt lnwire.MilliSatoshi, startingHeight uint32,
|
|||||||
}
|
}
|
||||||
|
|
||||||
// If this is the last, hop, then the time lock will be their
|
// If this is the last, hop, then the time lock will be their
|
||||||
// specified delta policy.
|
// specified delta policy plus our starting height.
|
||||||
timeLock := lastHop.cfg.FwrdingPolicy.TimeLockDelta
|
totalTimelock += lastHop.cfg.FwrdingPolicy.TimeLockDelta
|
||||||
totalTimelock += timeLock
|
timeLock := totalTimelock
|
||||||
|
|
||||||
// Otherwise, the outgoing time lock should be the incoming
|
// Otherwise, the outgoing time lock should be the incoming
|
||||||
// timelock minus their specified delta.
|
// timelock minus their specified delta.
|
||||||
|
Reference in New Issue
Block a user