lnd/graph
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
..
db multi: move LightningNode struct to models package 2024-11-28 13:36:32 +02:00
graphsession refactor: move graphsession pkg to graph package 2024-11-28 13:36:15 +02:00
testdata refactor: move various duties from ChannelRouter to graph.Builder 2024-07-15 15:56:33 +02:00
ann_validation.go multi: move ChannelUpdate validate methods to netann 2024-09-18 16:13:18 +02:00
builder.go multi: remove kvdb.Tx from ChannelGraphSource.ForAllOutgoingChannels 2024-11-28 13:49:41 +02:00
builder_test.go multi: move LightningNode struct to models package 2024-11-28 13:36:32 +02:00
errors.go graph: export NewErrf and ErrorCode for upcoming gossiper unit tests 2024-08-27 14:11:06 -04:00
interfaces.go multi: remove kvdb.Tx from ChannelGraphSource.ForAllOutgoingChannels 2024-11-28 13:49:41 +02:00
log.go multi: start updating various loggers to use the new v2 type 2024-10-22 17:03:55 +02:00
notifications.go multi: move LightningNode struct to models package 2024-11-28 13:36:32 +02:00
notifications_test.go multi: move LightningNode struct to models package 2024-11-28 13:36:32 +02:00
setup_test.go refactor: move various duties from ChannelRouter to graph.Builder 2024-07-15 15:56:33 +02:00
stats.go refactor: move various duties from ChannelRouter to graph.Builder 2024-07-15 15:56:33 +02:00
validation_barrier.go multi: move LightningNode struct to models package 2024-11-28 13:36:32 +02:00
validation_barrier_test.go multi: rename ChannelUpdate to ChannelUpdate1 2024-09-18 16:13:17 +02:00