mirror of
https://github.com/lightningnetwork/lnd.git
synced 2024-11-19 01:43:16 +01:00
fa7c1e250b
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. |
||
---|---|---|
.. | ||
agent_constraints_test.go | ||
agent_constraints.go | ||
agent_test.go | ||
agent.go | ||
betweenness_centrality_test.go | ||
betweenness_centrality.go | ||
centrality_testdata_test.go | ||
choice_test.go | ||
choice.go | ||
combinedattach.go | ||
externalscoreattach_test.go | ||
externalscoreattach.go | ||
graph_test.go | ||
graph.go | ||
interface.go | ||
log.go | ||
manager.go | ||
prefattach_test.go | ||
prefattach.go | ||
simple_graph_test.go | ||
simple_graph.go | ||
top_centrality_test.go | ||
top_centrality.go |