multi: let FetchLightningNode take an optional tx

In preparation for the next commit which will remove the
`*LightningNode` from the `ChannelEdgePolicy` struct,
`FetchLightningNode` is modified to take in an optional transaction so
that it can be utilised in places where a transaction exists.
This commit is contained in:
Elle Mouton
2023-10-23 14:21:24 +02:00
parent 9a62a46aa3
commit 6c76d31e89
9 changed files with 38 additions and 24 deletions

View File

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