mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-06-29 18:10:48 +02:00
routing: make setting source node optional when parsing testdata
This commit is contained in:
@ -209,9 +209,11 @@ func parseTestGraph(path string) (*channeldb.ChannelGraph, func(), aliasMap, err
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set the selected source node
|
if source != nil {
|
||||||
if err := graph.SetSourceNode(source); err != nil {
|
// Set the selected source node
|
||||||
return nil, nil, nil, err
|
if err := graph.SetSourceNode(source); err != nil {
|
||||||
|
return nil, nil, nil, err
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// With all the vertexes inserted, we can now insert the edges into the
|
// With all the vertexes inserted, we can now insert the edges into the
|
||||||
|
Reference in New Issue
Block a user