From 75aa4e7061c57c095f8d3910cab7261ca2b2fab1 Mon Sep 17 00:00:00 2001 From: Joost Jager Date: Wed, 11 Dec 2019 10:54:11 +0100 Subject: [PATCH] routing: require tlv capability for custom record payments Previously if a payment was sent with custom records attached, path finding wouldn't perform a check whether the final node was capable of receiving custom records in a tlv payload. --- routing/payment_session.go | 1 + 1 file changed, 1 insertion(+) diff --git a/routing/payment_session.go b/routing/payment_session.go index 124becbd..5168ba28 100644 --- a/routing/payment_session.go +++ b/routing/payment_session.go @@ -97,6 +97,7 @@ func (p *paymentSession) RequestRoute(payment *LightningPayment, OutgoingChannelID: payment.OutgoingChannelID, LastHop: payment.LastHop, CltvLimit: cltvLimit, + DestCustomRecords: payment.DestCustomRecords, } // We'll also obtain a set of bandwidthHints from the lower layer for