From 40e1d914b9f49877128edc40f8e555e1f1339989 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 3e535f3bd1f5..f44bca9b5e54 100644 --- a/node/service/src/lib.rs +++ b/node/service/src/lib.rs @@ -757,6 +757,7 @@ where OverseerGenerator: OverseerGen, { use polkadot_node_network_protocol::request_response::IncomingRequest; + use sc_network_common::sync::warp::WarpSyncParams; let role = config.role.clone(); let force_authoring = config.force_authoring; @@ -917,7 +918,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 {