routing: don't traverse links that advertise a timelock delta of zero

This commit is contained in:
Olaoluwa Osuntokun committed 2018-03-23 17:55:14 -07:00
1 parent f935bd0baf
commit 1365392d2b
1 file changed
+2 -1
+2 -1
View File
@@ -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,