Skip to content

Commit

Permalink
Merge pull request #8765 from hieblmi/fix-logging
Browse files Browse the repository at this point in the history
routing: log edge when skipping it
  • Loading branch information
guggero committed May 17, 2024
2 parents 2845c64 + c9713e0 commit 3c4ebeb
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions routing/unified_edges.go
Original file line number Diff line number Diff line change
Expand Up @@ -279,14 +279,13 @@ func (u *edgeUnifier) getEdgeLocal(netAmtReceived lnwire.MilliSatoshi,
}

// We pick the local channel with the highest available
// bandwidth, to maximize the success probability. It
// can be that the channel state changes between
// querying the bandwidth hints and sending out the
// htlc.
// bandwidth, to maximize the success probability. It can be
// that the channel state changes between querying the bandwidth
// hints and sending out the htlc.
if bandwidth < maxBandwidth {
log.Debugf("Skipped edge %v: not max bandwidth, "+
"bandwidth=%v, maxBandwidth=%v",
bandwidth, maxBandwidth)
edge.policy.ChannelID, bandwidth, maxBandwidth)

continue
}
Expand Down

0 comments on commit 3c4ebeb

Please sign in to comment.