From 1365392d2ba7ce21ab5bb6e755058d4d7a1f632a Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Thu, 22 Mar 2018 17:35:20 -0700 Subject: [PATCH] routing: don't traverse links that advertise a timelock delta of zero --- routing/pathfind.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/routing/pathfind.go b/routing/pathfind.go index 5584ad2bc..88002aa44 100644 --- a/routing/pathfind.go +++ b/routing/pathfind.go @@ -543,7 +543,8 @@ func findPath(tx *bolt.Tx, graph *channeldb.ChannelGraph, // amount to our relaxation condition. if tempDist < distance[v].dist && edgeInfo.Capacity >= amt.ToSatoshis() && - amt >= outEdge.MinHTLC { + amt >= outEdge.MinHTLC && + outEdge.TimeLockDelta != 0 { distance[v] = nodeWithDist{ dist: tempDist,