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

This commit is contained in:
Olaoluwa Osuntokun 2017-08-22 00:50:04 -07:00
parent c1aed90e72
commit 321cc28cd8
No known key found for this signature in database
GPG Key ID: 9CC5B105D03521A2

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