Skip to content

Commit

Permalink
itest: fix lnd pay to route cltv delta
Browse files Browse the repository at this point in the history
  • Loading branch information
JssDWt committed Nov 21, 2024
1 parent 2a07d21 commit d1c2ab1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion itest/lntest/lnd_node.go
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@ func (n *LndNode) PayViaRoute(amountMsat uint64, paymentHash []byte, paymentSecr
r.TotalTimeLock += uint32(hop.Delay)
}

currentExpiry := r.TotalTimeLock
currentExpiry := r.TotalTimeLock + uint32(route.Hops[len(route.Hops)-1].Delay)
for i, hop := range route.Hops {
amtToForwardMsat := hop.AmountMsat
if i != len(route.Hops)-1 {
Expand Down

0 comments on commit d1c2ab1

Please sign in to comment.