Fix crash of synced parachain node run with --sync=warp (#3523)

Fixes https://github.com/paritytech/polkadot-sdk/issues/3496.
This commit is contained in:
Dmitry Markin
2024-03-01 13:19:17 +02:00
committed by GitHub
parent 59b2661444
commit a1b57a8c18
3 changed files with 101 additions and 8 deletions
@@ -656,6 +656,8 @@ where
Some(event) => self.process_notification_event(event),
None => return,
},
// TODO: setting of warp sync target block should be moved to the initialization of
// `SyncingEngine`, see https://github.com/paritytech/polkadot-sdk/issues/3537.
warp_target_block_header = &mut self.warp_sync_target_block_header_rx_fused => {
if let Err(_) = self.pass_warp_sync_target_block_header(warp_target_block_header) {
error!(