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:
MPins 2025-03-03 07:05:51 -03:00
parent 746bdd6344
commit ea918ebcb5

View file

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