Skip to content

Commit

Permalink
hardcode relaychain blocktime
Browse files Browse the repository at this point in the history
  • Loading branch information
liamaharon committed May 20, 2024
1 parent e80f524 commit 47a76ca
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/src/common/empty_block/inherents/providers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ use tokio::sync::Mutex;

use crate::common::empty_block::inherents::custom_idps;

const RELAYCHAIN_BLOCKTIME_MS: u64 = 6000u64;

/// Trait for providing the inherent data and digest items for block construction.
pub trait InherentProvider<B: BlockT> {
type Err;
Expand Down Expand Up @@ -111,7 +113,7 @@ impl<B: BlockT> InherentProvider<B> for SmartInherentProvider {
maybe_parent_info,
};
let para_parachain_idp = custom_idps::para_parachain::InherentDataProvider::<B> {
blocktime_millis: self.blocktime.as_millis() as u64,
blocktime_millis: RELAYCHAIN_BLOCKTIME_MS,
parent_header: parent_header.clone(),
timestamp: timestamp_idp.timestamp(),
ext_mutex: ext,
Expand Down

0 comments on commit 47a76ca

Please sign in to comment.