Skip to content

Commit

Permalink
routing: log edge when skipping it
Browse files Browse the repository at this point in the history
  • Loading branch information
hieblmi committed May 16, 2024
1 parent 9d358bc commit c9713e0
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 c9713e0

Please sign in to comment.