From dcc652b3d0c5d1fc8186a7ab994b53e076f9da97 Mon Sep 17 00:00:00 2001 From: sam elamin Date: Wed, 23 Nov 2022 13:30:38 +0000 Subject: [PATCH] add warp sync params to enable parachain warp sync --- node/service/src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/node/service/src/lib.rs b/node/service/src/lib.rs index 4cd937b1d7de..5ae11e431645 100644 --- a/node/service/src/lib.rs +++ b/node/service/src/lib.rs @@ -755,6 +755,7 @@ where OverseerGenerator: OverseerGen, { 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 role = config.role.clone(); @@ -916,7 +917,7 @@ where spawn_handle: task_manager.spawn_handle(), import_queue, block_announce_validator_builder: None, - warp_sync: Some(warp_sync), + warp_sync_params: Some(WarpSyncParams::WithProvider(warp_sync)), })?; if config.offchain_worker.enabled {