refactor: create FetchLightningNode with no tx param

In preparation for adding a clean Graph DB interface, we create a
version of FetchLightningNode that doesnt allow a caller to provide in a
transaction.
This commit is contained in:
Elle Mouton committed 2024-07-15 15:13:57 +02:00
1 parent 71e93526d6
commit c20d759d41
8 files changed
+39 -18

No files matched your search

+1 -1
View File
@@ -4634,7 +4634,7 @@ func (s *server) fetchNodeAdvertisedAddrs(pub *btcec.PublicKey) ([]net.Addr, err
return nil, err
}
node, err := s.graphDB.FetchLightningNode(nil, vertex)
node, err := s.graphDB.FetchLightningNode(vertex)
if err != nil {
return nil, err
}