From 321cc28cd8f8ad6a34a25c0bdc30dc7df17b7327 Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Tue, 22 Aug 2017 00:50:04 -0700 Subject: [PATCH] routing: in findPath skip edge if incoming edge isn't advertised --- routing/pathfind.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/routing/pathfind.go b/routing/pathfind.go index bec821ec..2bd0174e 100644 --- a/routing/pathfind.go +++ b/routing/pathfind.go @@ -409,6 +409,9 @@ func findPath(graph *channeldb.ChannelGraph, sourceNode *channeldb.LightningNode if _, ok := ignoredEdges[outEdge.ChannelID]; ok { return nil } + if inEdge == nil { + return nil + } // Compute the tentative distance to this new // channel/edge which is the distance to our current