mirror of
https://github.com/lightningnetwork/lnd.git
synced 2024-11-19 01:43:16 +01:00
7f1be39d45
This commit is a large refactor that moves over various responsibilities from the ChannelRouter to the graph.Builder. These include all graph related tasks such as: - graph pruning - validation of new network updates & persisting new updates - notifying topology update clients of any changes. This is a large commit but: - many of the files are purely moved from `routing` to `graph` - the business logic put in the graph Builder is copied exactly as is from the ChannelRouter with one exception: - The ChannelRouter just needs to be able to call the Builder's `ApplyChannelUpdate` method. So this is now exported and provided to the ChannelRouter as a config option. - The trickiest part was just moving over the test code since quite a bit had to be duplicated. |
||
---|---|---|
.. | ||
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 |