lnd/discovery
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
..
bootstrapper.go multi: fix make fmt 2022-08-23 22:10:24 +08:00
chan_series.go refactor: move various duties from ChannelRouter to graph.Builder 2024-07-15 15:56:33 +02:00
gossiper_test.go refactor: move various duties from ChannelRouter to graph.Builder 2024-07-15 15:56:33 +02:00
gossiper.go refactor: move various duties from ChannelRouter to graph.Builder 2024-07-15 15:56:33 +02:00
log.go multi: init subsystem loggers via build pkg 2018-10-05 13:04:45 +09:00
message_store_test.go discovery: use T.TempDir to create temporary test directory 2022-08-24 08:58:16 +08:00
message_store.go multi: wrap all errors 2024-04-11 15:04:03 +02:00
mock_test.go funding+peer: add support for new musig2 channel funding flow 2023-08-22 16:32:07 -07:00
reliable_sender_test.go multi: use btcd's btcec/v2 and btcutil modules 2022-03-09 19:02:37 +01:00
reliable_sender.go discovery+peer: add logs to reveal shutdown flow 2022-12-08 17:57:01 +08:00
sync_manager_test.go multi: start asking for update timestamps in QueryChannelRange 2023-12-11 09:12:04 +02:00
sync_manager.go multi: extract and pass through IsZombieChannel method 2023-12-11 09:12:05 +02:00
syncer_test.go multi: fix fmt.Errorf error wrapping 2024-02-27 11:13:40 +00:00
syncer.go multi: wrap all errors 2024-04-11 15:04:03 +02:00