Skip to content

Commit

Permalink
Merge pull request #505 from interlay/fix/hardcode-slot-duration
Browse files Browse the repository at this point in the history
fix: hardcode slot duration
  • Loading branch information
nud3l authored Feb 11, 2022
2 parents df4343d + bb0c5b3 commit f01c767
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions parachain/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,8 @@ where
);

let import_queue = {
let slot_duration = cumulus_client_consensus_aura::slot_duration(&*client)?;
let slot_duration =
cumulus_client_consensus_aura::SlotDuration::new(sp_consensus_aura::SlotDuration::from_millis(6000));

cumulus_client_consensus_aura::import_queue::<AuraPair, _, _, _, _, _, _>(
cumulus_client_consensus_aura::ImportQueueParams {
Expand Down Expand Up @@ -441,7 +442,8 @@ where
sync_oracle,
keystore,
force_authoring| {
let slot_duration = cumulus_client_consensus_aura::slot_duration(&*client)?;
let slot_duration =
cumulus_client_consensus_aura::SlotDuration::new(sp_consensus_aura::SlotDuration::from_millis(6000));

let proposer_factory = sc_basic_authorship::ProposerFactory::with_proof_recording(
task_manager.spawn_handle(),
Expand Down

0 comments on commit f01c767

Please sign in to comment.