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

This commit is contained in:
Olaoluwa Osuntokun 2018-03-22 17:35:20 -07:00
parent f935bd0baf
commit 1365392d2b
No known key found for this signature in database
GPG Key ID: 964EA263DD637C21

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