mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-26 01:33:02 +01:00
Merge pull request #8765 from hieblmi/fix-logging
routing: log edge when skipping it
This commit is contained in:
commit
3c4ebeb994
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user