Merge pull request #8765 from hieblmi/fix-logging

routing: log edge when skipping it
This commit is contained in:
Oliver Gugger 2024-05-17 08:42:11 +02:00 committed by GitHub
commit 3c4ebeb994
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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
}