routing: in findPath skip edge if incoming edge isn't advertised
This commit is contained in:
1 file changed
+3
@@ -409,6 +409,9 @@ func findPath(graph *channeldb.ChannelGraph, sourceNode *channeldb.LightningNode
|
|||||||
if _, ok := ignoredEdges[outEdge.ChannelID]; ok {
|
if _, ok := ignoredEdges[outEdge.ChannelID]; ok {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
if inEdge == nil {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
// Compute the tentative distance to this new
|
// Compute the tentative distance to this new
|
||||||
// channel/edge which is the distance to our current
|
// channel/edge which is the distance to our current
|
||||||
|
|||||||
Reference in new issue
Block a user