Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
aurexav committed May 22, 2023
1 parent b382acd commit 8530448
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions node/src/service/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,10 @@ where

let relay_chain_slot_duration = Duration::from_secs(6);

let overseer_handle = relay_chain_interface
.overseer_handle()
.map_err(|e| sc_service::Error::Application(Box::new(e)))?;

if validator {
let parachain_consensus = build_consensus(
client.clone(),
Expand Down Expand Up @@ -485,6 +489,7 @@ where
import_queue: import_queue_service,
collator_key: collator_key.expect("Command line arguments do not allow this. qed"),
relay_chain_slot_duration,
recovery_handle: Box::new(overseer_handle),
};

cumulus_client_service::start_collator(params).await?;
Expand All @@ -497,6 +502,7 @@ where
relay_chain_interface,
relay_chain_slot_duration,
import_queue: import_queue_service,
recovery_handle: Box::new(overseer_handle),
};

cumulus_client_service::start_full_node(params)?;
Expand Down

0 comments on commit 8530448

Please sign in to comment.