add warp sync params to enable parachain warp sync (#6334)

* add warp sync params to enable parachain warp sync

* update lockfile for {"substrate"}

---------

Co-authored-by: parity-processbot <>
This commit is contained in:
Sam Elamin
2023-02-14 18:31:50 +00:00
committed by GitHub
parent fd70d01274
commit 7f6b8e6df9
2 changed files with 183 additions and 182 deletions
+181 -181
View File
File diff suppressed because it is too large Load Diff
+2 -1
View File
@@ -756,6 +756,7 @@ where
OverseerGenerator: OverseerGen, OverseerGenerator: OverseerGen,
{ {
use polkadot_node_network_protocol::request_response::IncomingRequest; use polkadot_node_network_protocol::request_response::IncomingRequest;
use sc_network_common::sync::warp::WarpSyncParams;
let is_offchain_indexing_enabled = config.offchain_worker.indexing_enabled; let is_offchain_indexing_enabled = config.offchain_worker.indexing_enabled;
let role = config.role.clone(); let role = config.role.clone();
@@ -917,7 +918,7 @@ where
spawn_handle: task_manager.spawn_handle(), spawn_handle: task_manager.spawn_handle(),
import_queue, import_queue,
block_announce_validator_builder: None, block_announce_validator_builder: None,
warp_sync: Some(warp_sync), warp_sync_params: Some(WarpSyncParams::WithProvider(warp_sync)),
})?; })?;
if config.offchain_worker.enabled { if config.offchain_worker.enabled {