From 4bdf873145ed8b77bd226f3e406b35581d72c1a7 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") }