From 47a76ca79eb189760af6f412fad6e4f6b65fa373 Mon Sep 17 00:00:00 2001 From: Liam Aharon Date: Mon, 20 May 2024 14:13:03 +0400 Subject: [PATCH] hardcode relaychain blocktime --- core/src/common/empty_block/inherents/providers.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/src/common/empty_block/inherents/providers.rs b/core/src/common/empty_block/inherents/providers.rs index b51a319018..250cd494c3 100644 --- a/core/src/common/empty_block/inherents/providers.rs +++ b/core/src/common/empty_block/inherents/providers.rs @@ -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 { type Err; @@ -111,7 +113,7 @@ impl InherentProvider for SmartInherentProvider { maybe_parent_info, }; let para_parachain_idp = custom_idps::para_parachain::InherentDataProvider:: { - 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,