From ea918ebcb5473b958992cf951e948619d5ad97db Mon Sep 17 00:00:00 2001 From: MPins Date: Mon, 3 Mar 2025 07:05:51 -0300 Subject: [PATCH] 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. --- routing/router.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/routing/router.go b/routing/router.go index dae8ebf60..54e746b17 100644 --- a/routing/router.go +++ b/routing/router.go @@ -695,6 +695,12 @@ func (r *ChannelRouter) FindBlindedPaths(destination route.Vertex, // Don't bother adding a route if its success probability less // minimum that can be assigned to any single pair. 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 }