lnd/netann
Elle Mouton 7f1be39d45
refactor: move various duties from ChannelRouter to graph.Builder
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.
2024-07-15 15:56:33 +02:00
..
chan_status_manager_test.go multi: make NewChanIDFromOutpoint accept value instead of pointer 2024-03-08 15:47:55 -08:00
chan_status_manager.go multi: return verbose errors when fetching edges 2024-06-10 08:40:18 +08:00
channel_announcement_test.go multi: move DB schemas to channeldb/models 2023-11-08 14:50:35 +02:00
channel_announcement.go multi: move DB schemas to channeldb/models 2023-11-08 14:50:35 +02:00
channel_state.go multi: Fix typos [skip ci] 2022-01-24 12:19:02 +02:00
channel_update_test.go refactor: move various duties from ChannelRouter to graph.Builder 2024-07-15 15:56:33 +02:00
channel_update.go multi: move DB schemas to channeldb/models 2023-11-08 14:50:35 +02:00
host_ann_test.go multi: formatting and comment fixes 2022-02-10 11:02:02 +01:00
host_ann.go multi: add debug logs to catch slow shutdown 2023-10-06 16:34:47 -07:00
interface.go multi: move DB schemas to channeldb/models 2023-11-08 14:50:35 +02:00
log.go netann: remove unused logClosure 2020-04-24 19:15:08 +02:00
node_announcement.go multi/refactor: move node ann modification outside of sign method 2023-05-04 10:35:41 -04:00
node_signer.go multi: fix fmt.Errorf error wrapping 2024-02-27 11:13:40 +00:00
sign.go multi: fix fmt.Errorf error wrapping 2024-02-27 11:13:40 +00:00