Skip to content

Commit

Permalink
x - debug cannot attach pay addr
Browse files Browse the repository at this point in the history
  • Loading branch information
yyforyongyu committed Nov 21, 2024
1 parent 899c6e4 commit db80ec6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions routing/pathfind.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
Expand Down

0 comments on commit db80ec6

Please sign in to comment.