mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-02-22 14:22:37 +01:00
htlcswitch: when generating routes in test payload for last hop in absolute timeout
This commit is contained in:
parent
b07e7fb7cc
commit
246164e290
1 changed files with 3 additions and 3 deletions
|
@ -361,9 +361,9 @@ func generateHops(payAmt lnwire.MilliSatoshi, startingHeight uint32,
|
|||
}
|
||||
|
||||
// If this is the last, hop, then the time lock will be their
|
||||
// specified delta policy.
|
||||
timeLock := lastHop.cfg.FwrdingPolicy.TimeLockDelta
|
||||
totalTimelock += timeLock
|
||||
// specified delta policy plus our starting height.
|
||||
totalTimelock += lastHop.cfg.FwrdingPolicy.TimeLockDelta
|
||||
timeLock := totalTimelock
|
||||
|
||||
// Otherwise, the outgoing time lock should be the incoming
|
||||
// timelock minus their specified delta.
|
||||
|
|
Loading…
Add table
Reference in a new issue