mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-02-22 14:22:37 +01:00
routing: don't traverse links that advertise a timelock delta of zero
This commit is contained in:
parent
f935bd0baf
commit
1365392d2b
1 changed files with 2 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue