lnd/autopilot
Elle Mouton fa7c1e250b
multi: let ForEachChannel be a method on ChannelGraph
Having a `ForEachChannel` method on the `LightningNode` struct itself
results in a `kvdb.Backend` object needing to be stored within the
LightningNode struct. In this commit, this method is replaced with a
`ForEachNodeChannel` method on the `ChannelGraph` struct will perform
the same function without needing the db pointer to be stored within the
LightningNode. This change, the LightningNode struct more closely
represents the schema on disk.

The existing `ForEachNodeChannel` method on `ChannelGraph` is renamed to
`ForEachNodeDirectedChannel`. It performs a slightly different function
since it's call-back operates on Cached policies.
2023-11-08 10:51:50 +02:00
..
agent_constraints_test.go multi: use btcd's btcec/v2 and btcutil modules 2022-03-09 19:02:37 +01:00
agent_constraints.go trivial: Fix spelling errors 2023-09-21 22:35:33 -04:00
agent_test.go autopilot: replace defer cleanup with t.Cleanup 2022-10-13 17:01:31 +08:00
agent.go trivial: Fix spelling errors 2023-09-21 22:35:33 -04:00
betweenness_centrality_test.go autopilot: fix loop variables, use require 2022-10-13 14:40:43 +02:00
betweenness_centrality.go multi: Fix typos [skip ci] 2022-01-24 12:19:02 +02:00
centrality_testdata_test.go multi: use btcd's btcec/v2 and btcutil modules 2022-03-09 19:02:37 +01:00
choice_test.go autopilot: append instead of appends in a loop 2020-04-24 19:15:08 +02:00
choice.go multi: Fix typos [skip ci] 2022-01-24 12:19:02 +02:00
combinedattach.go trivial typo[skip ci] 2022-07-01 11:21:46 +02:00
externalscoreattach_test.go multi: use btcd's btcec/v2 and btcutil modules 2022-03-09 19:02:37 +01:00
externalscoreattach.go multi: use btcd's btcec/v2 and btcutil modules 2022-03-09 19:02:37 +01:00
graph_test.go multi: use btcd's btcec/v2 and btcutil modules 2022-03-09 19:02:37 +01:00
graph.go multi: let ForEachChannel be a method on ChannelGraph 2023-11-08 10:51:50 +02:00
interface.go multi: use btcd's btcec/v2 and btcutil modules 2022-03-09 19:02:37 +01:00
log.go multi: init subsystem loggers via build pkg 2018-10-05 13:04:45 +09:00
manager.go trivial: Fix spelling errors 2023-09-21 22:35:33 -04:00
prefattach_test.go autopilot: fix loop variables, use require 2022-10-13 14:40:43 +02:00
prefattach.go multi: use btcd's btcec/v2 and btcutil modules 2022-03-09 19:02:37 +01:00
simple_graph_test.go lnrpc+autopilot: add graph diameter calculation 2022-03-07 11:15:47 +01:00
simple_graph.go trivial: Fix spelling errors 2023-09-21 22:35:33 -04:00
top_centrality_test.go trivial: Fix spelling errors 2023-09-21 22:35:33 -04:00
top_centrality.go multi: use btcd's btcec/v2 and btcutil modules 2022-03-09 19:02:37 +01:00