Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
add warp sync params to enable parachain warp sync
Browse files Browse the repository at this point in the history
  • Loading branch information
samelamin committed Nov 23, 2022
1 parent 3cf644a commit 40e1d91
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion node/service/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 40e1d91

Please sign in to comment.