From d1c2ab192c0010dd9944d43c561b9526c0404583 Mon Sep 17 00:00:00 2001 From: Jesse de Wit Date: Thu, 21 Nov 2024 15:33:21 +0100 Subject: [PATCH] itest: fix lnd pay to route cltv delta --- itest/lntest/lnd_node.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/itest/lntest/lnd_node.go b/itest/lntest/lnd_node.go index e528ef30..0d8d8e27 100644 --- a/itest/lntest/lnd_node.go +++ b/itest/lntest/lnd_node.go @@ -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 {