channeldb: add tx argument for FetchLightningNode

To allow execution within an existing tx.
This commit is contained in:
Joost Jager
2019-12-20 10:14:13 +01:00
parent 37d9ee302c
commit 95ddab57fa
9 changed files with 34 additions and 20 deletions

View File

@@ -2089,7 +2089,7 @@ func (r *ChannelRouter) GetChannelByID(chanID lnwire.ShortChannelID) (
//
// NOTE: This method is part of the ChannelGraphSource interface.
func (r *ChannelRouter) FetchLightningNode(node route.Vertex) (*channeldb.LightningNode, error) {
return r.cfg.Graph.FetchLightningNode(node)
return r.cfg.Graph.FetchLightningNode(nil, node)
}
// ForEachNode is used to iterate over every node in router topology.