routing: in findPath skip edge if incoming edge isn't advertised

This commit is contained in:
Olaoluwa Osuntokun committed 2017-08-22 00:54:15 -07:00
1 parent c1aed90e72
commit 321cc28cd8
1 file changed
+3
+3
View File
@@ -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