mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-06-17 20:31:41 +02:00
routing: log edge when skipping it
This commit is contained in:
parent
9d358bc649
commit
c9713e0ddb
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user