mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-04 09:48:19 +01:00
routing: add logging for routes discarded due to low success probability
Discarded routes with a success probability lower than the minimum threshold are now logged accordingly when finding a blinded path.
This commit is contained in:
parent
746bdd6344
commit
ea918ebcb5
1 changed files with 6 additions and 0 deletions
|
@ -695,6 +695,12 @@ func (r *ChannelRouter) FindBlindedPaths(destination route.Vertex,
|
||||||
// Don't bother adding a route if its success probability less
|
// Don't bother adding a route if its success probability less
|
||||||
// minimum that can be assigned to any single pair.
|
// minimum that can be assigned to any single pair.
|
||||||
if totalRouteProbability <= DefaultMinRouteProbability {
|
if totalRouteProbability <= DefaultMinRouteProbability {
|
||||||
|
log.Debugf("Not using route (%v) as a blinded "+
|
||||||
|
"path since it resulted in an low "+
|
||||||
|
"probability path(%.3f)",
|
||||||
|
routeWithProbability.route.ChanIDString(),
|
||||||
|
routeWithProbability.probability,
|
||||||
|
)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue