routing: log edge when skipping it

This commit is contained in:
Slyghtning 2024-05-16 13:51:47 +02:00
parent 9d358bc649
commit c9713e0ddb
No known key found for this signature in database
GPG Key ID: F82D456EA023C9BF

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
}