Merge pull request #8765 from hieblmi/fix-logging
routing: log edge when skipping it
This commit is contained in:
1 file changed
+4
-5
@@ -279,14 +279,13 @@ func (u *edgeUnifier) getEdgeLocal(netAmtReceived lnwire.MilliSatoshi,
|
|||||||
}
|
}
|
||||||
|
|
||||||
// We pick the local channel with the highest available
|
// We pick the local channel with the highest available
|
||||||
// bandwidth, to maximize the success probability. It
|
// bandwidth, to maximize the success probability. It can be
|
||||||
// can be that the channel state changes between
|
// that the channel state changes between querying the bandwidth
|
||||||
// querying the bandwidth hints and sending out the
|
// hints and sending out the htlc.
|
||||||
// htlc.
|
|
||||||
if bandwidth < maxBandwidth {
|
if bandwidth < maxBandwidth {
|
||||||
log.Debugf("Skipped edge %v: not max bandwidth, "+
|
log.Debugf("Skipped edge %v: not max bandwidth, "+
|
||||||
"bandwidth=%v, maxBandwidth=%v",
|
"bandwidth=%v, maxBandwidth=%v",
|
||||||
bandwidth, maxBandwidth)
|
edge.policy.ChannelID, bandwidth, maxBandwidth)
|
||||||
|
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user