Skip to content

Commit

Permalink
fix after merge
Browse files Browse the repository at this point in the history
  • Loading branch information
ermalkaleci committed Jul 30, 2024
1 parent c0c2d49 commit a207377
Showing 1 changed file with 20 additions and 23 deletions.
43 changes: 20 additions & 23 deletions bin/collator/src/parachain/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -960,35 +960,32 @@ where
let verifier_client = client.clone();

let aura_verifier = move || {
Box::new(cumulus_client_consensus_aura::build_verifier::<
AuraPair,
_,
_,
_,
>(sc_consensus_aura::BuildVerifierParams {
client: verifier_client.clone(),
create_inherent_data_providers: move |parent_hash, _| {
let cidp_client = verifier_client.clone();
async move {
let slot_duration = cumulus_client_consensus_aura::slot_duration_at(
&*cidp_client,
parent_hash,
)?;
let timestamp = sp_timestamp::InherentDataProvider::from_system_time();

let slot =
Box::new(sc_consensus_aura::build_verifier::<AuraPair, _, _, _>(
sc_consensus_aura::BuildVerifierParams {
client: verifier_client.clone(),
create_inherent_data_providers: move |parent_hash, _| {
let cidp_client = verifier_client.clone();
async move {
let slot_duration = cumulus_client_consensus_aura::slot_duration_at(
&*cidp_client,
parent_hash,
)?;
let timestamp = sp_timestamp::InherentDataProvider::from_system_time();

let slot =
sp_consensus_aura::inherents::InherentDataProvider::from_timestamp_and_slot_duration(
*timestamp,
slot_duration,
);

Ok((slot, timestamp))
}
Ok((slot, timestamp))
}
},
telemetry: telemetry_handle,
check_for_equivocation: sc_consensus_aura::CheckForEquivocation::Yes,
compatibility_mode: sc_consensus_aura::CompatibilityMode::None,
},
telemetry: telemetry_handle,
check_for_equivocation: sc_consensus_aura::CheckForEquivocation::Yes,
compatibility_mode: sc_consensus_aura::CompatibilityMode::None,
})) as Box<_>
)) as Box<_>
};

let relay_chain_verifier = Box::new(RelayChainVerifier::new(client.clone(), |_, _| async {
Expand Down

0 comments on commit a207377

Please sign in to comment.