channeldb: add tx argument for FetchLightningNode
To allow execution within an existing tx.
This commit is contained in:
9 files changed
+34
-20
No files matched your search
+1
-1
@@ -446,7 +446,7 @@ func findPath(g *graphParams, r *RestrictParams, cfg *PathFindingConfig,
|
||||
// we have for the target node from our graph.
|
||||
features := r.DestFeatures
|
||||
if features == nil {
|
||||
targetNode, err := g.graph.FetchLightningNode(target)
|
||||
targetNode, err := g.graph.FetchLightningNode(tx, target)
|
||||
switch {
|
||||
|
||||
// If the node exists and has features, use them directly.
|
||||
|
||||
Reference in new issue
Block a user