routing: in findPath skip edge if incoming edge isn't advertised
This commit is contained in:
parent
c1aed90e72
commit
321cc28cd8
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user