router: fix 'out of order block error' by retrieving missing blocks in router

Fixes an issue where an out of order block error occurs in the router. When this occurs, the change uses the chain notifier to catch up on missed blocks and uses those blocks to fully update the routing graph with closed channels. Fixes #4710, #5132
This commit is contained in:
Turtle committed 2021-09-13 21:15:49 -04:00
1 parent b0f3a08f2d
commit 147c7dc94c
2 files changed
+147 -51

No files matched your search

+1
View File
@@ -781,6 +781,7 @@ func newServer(cfg *Config, listenAddrs []net.Addr,
Graph: chanGraph,
Chain: cc.ChainIO,
ChainView: cc.ChainView,
Notifier: cc.ChainNotifier,
Payer: s.htlcSwitch,
Control: s.controlTower,
MissionControl: s.missionControl,