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
@@ -3374,7 +3374,7 @@ func (s *server) fetchNodeAdvertisedAddr(pub *btcec.PublicKey) (net.Addr, error)
|
||||
return nil, err
|
||||
}
|
||||
|
||||
node, err := s.chanDB.ChannelGraph().FetchLightningNode(vertex)
|
||||
node, err := s.chanDB.ChannelGraph().FetchLightningNode(nil, vertex)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user