From 0e179fae1e790c4755a3e8c537c79bb53d9a07eb Mon Sep 17 00:00:00 2001 From: Carla Kirk-Cohen Date: Wed, 9 Aug 2023 15:19:00 -0400 Subject: [PATCH] routing: remove 0-value warning log in pathfinding Blinded routes can now have "hints" that have zero value edges, so we remove this log to avoid spamming logs. --- routing/pathfind.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/routing/pathfind.go b/routing/pathfind.go index 16f182b12..d007be05e 100644 --- a/routing/pathfind.go +++ b/routing/pathfind.go @@ -810,13 +810,6 @@ func findPath(g *graphParams, r *RestrictParams, cfg *PathFindingConfig, } } - // Every edge should have a positive time lock delta. If we - // encounter a zero delta, log a warning line. - if edge.policy.TimeLockDelta == 0 { - log.Warnf("Channel %v has zero cltv delta", - edge.policy.ChannelID) - } - // Calculate the total routing info size if this hop were to be // included. If we are coming from the source hop, the payload // size is zero, because the original htlc isn't in the onion