Skip to content

Commit

Permalink
x - debug for inactive htlc
Browse files Browse the repository at this point in the history
x - debug cannot attach pay addr
  • Loading branch information
yyforyongyu committed Nov 25, 2024
1 parent 83f9000 commit 7e1c2d4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lntest/node/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ func (cfg *BaseNodeConfig) GenArgs() []string {

nodeArgs := []string{
"--nobootstrap",
"--debuglevel=debug,CRTR=trace",
"--debuglevel=debug,HSWC=trace",
"--bitcoin.defaultchanconfs=1",
"--accept-keysend",
"--keep-failed-payment-attempts",
Expand Down
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 7e1c2d4

Please sign in to comment.