From 9e55a37e99172257b7d92f72482c131a30f615fa Mon Sep 17 00:00:00 2001 From: yyforyongyu Date: Wed, 20 Nov 2024 18:30:36 +0800 Subject: [PATCH] x - debug cannot attach pay addr --- routing/pathfind.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/routing/pathfind.go b/routing/pathfind.go index 43eae71036..b8d02c2bc7 100644 --- a/routing/pathfind.go +++ b/routing/pathfind.go @@ -227,6 +227,12 @@ func newRoute(sourceVertex route.Vertex, // doesn't support both TLV and payment addrs, fail. payAddr := supports(lnwire.PaymentAddrOptional) if !payAddr && finalHop.paymentAddr.IsSome() { + log.Debugf("Destination doesn't support "+ + "payment addr: edge=%v, payAddr=%v, "+ + "finalHopPayAddr=%v", + lnutils.SpewLogClosure(edge), payAddr, + finalHop.paymentAddr.IsSome()) + return nil, errors.New("cannot attach " + "payment addr") }