multi: update FetchChanInfos to take in an optional tx

In this commit, the FetchChanInfos ChannelGraph method is updated to
take in an optional read transaction for the case where it is called
from within another transaction.
This commit is contained in:
Elle Mouton committed 2024-01-22 21:07:55 +02:00
1 parent 8cf4044215
commit 6c427a6ba9
4 files changed
+32 -14

No files matched your search

+1 -1
View File
@@ -249,7 +249,7 @@ func (c *ChanSeries) FetchChanAnns(chain chainhash.Hash,
chanIDs = append(chanIDs, chanID.ToUint64())
}
channels, err := c.graph.FetchChanInfos(chanIDs)
channels, err := c.graph.FetchChanInfos(nil, chanIDs)
if err != nil {
return nil, err
}