lnd/routing/localchans
Elle Mouton adcaa8802f
multi: remove kvdb.Tx from ChannelGraphSource.ForAllOutgoingChannels
and the same for ChannelStateDB.FetchChannel. Most of the calls to these
methods provide a `nil` Tx anyways. The only place that currently
provides a non-nil tx is in the `localchans.Manager`. It takes the
transaction provided to the `ForAllOutgoingChannels` callback and passes
it to it's `updateEdge` method. Note, however, that the
`ForAllOutgoingChannels` call is a call to the graph db and the call to
`updateEdge` is a call to the `ChannelStateDB`. There is no reason that
these two calls need to happen under the same transaction as they are
reading from two completely disjoint databases. And so in the effort to
completely split untangle the relationship between the two databases, we
now dont use the same transaction for these two calls.
2024-11-28 13:49:41 +02:00
..
log.go localchans: recreate missing edge if not found 2024-11-13 12:13:11 +01:00
manager_test.go multi: remove kvdb.Tx from ChannelGraphSource.ForAllOutgoingChannels 2024-11-28 13:49:41 +02:00
manager.go multi: remove kvdb.Tx from ChannelGraphSource.ForAllOutgoingChannels 2024-11-28 13:49:41 +02:00