From dfd37df0ede1b0c9c97933fd07b725fc80d2b522 Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Fri, 16 Jun 2017 22:35:06 +0200 Subject: [PATCH] routing: set expiry on initial outgoing HTLC using total time lock --- routing/router.go | 1 + 1 file changed, 1 insertion(+) diff --git a/routing/router.go b/routing/router.go index d24e4882..d499b655 100644 --- a/routing/router.go +++ b/routing/router.go @@ -1002,6 +1002,7 @@ func (r *ChannelRouter) SendPayment(payment *LightningPayment) ([32]byte, *Route // payment through the network, starting with the first-hop. htlcAdd := &lnwire.UpdateAddHTLC{ Amount: route.TotalAmount, + Expiry: route.TotalTimeLock, PaymentHash: payment.PaymentHash, } copy(htlcAdd.OnionBlob[:], sphinxPacket)