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

Commit e8c41b3

Browse files
committed
add warp sync params to enable parachain warp sync
1 parent 64a8b43 commit e8c41b3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

node/service/src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -758,6 +758,7 @@ where
758758
OverseerGenerator: OverseerGen,
759759
{
760760
use polkadot_node_network_protocol::request_response::IncomingRequest;
761+
use sc_network_common::sync::warp::WarpSyncParams;
761762

762763
let is_offchain_indexing_enabled = config.offchain_worker.indexing_enabled;
763764
let role = config.role.clone();
@@ -919,7 +920,7 @@ where
919920
spawn_handle: task_manager.spawn_handle(),
920921
import_queue,
921922
block_announce_validator_builder: None,
922-
warp_sync: Some(warp_sync),
923+
warp_sync_params: Some(WarpSyncParams::WithProvider(warp_sync)),
923924
})?;
924925

925926
if config.offchain_worker.enabled {

0 commit comments

Comments
 (0)