From e861859deca64af978017b3d2de335d4b2f8cd0e Mon Sep 17 00:00:00 2001 From: Luke Parker Date: Fri, 22 Mar 2024 16:18:01 -0400 Subject: [PATCH] Update EpochDuration in runtime --- substrate/runtime/src/lib.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/substrate/runtime/src/lib.rs b/substrate/runtime/src/lib.rs index 10340567..9a534a72 100644 --- a/substrate/runtime/src/lib.rs +++ b/substrate/runtime/src/lib.rs @@ -314,12 +314,10 @@ pub type ReportLongevity = ::EpochDuration; impl babe::Config for Runtime { #[cfg(feature = "fast-epoch")] - #[allow(clippy::identity_op)] - type EpochDuration = ConstU64<{ DAYS / (24 * 60 * 2) }>; // 30 seconds + type EpochDuration = ConstU64<{ MINUTES / 2 }>; // 30 seconds #[cfg(not(feature = "fast-epoch"))] - #[allow(clippy::identity_op)] - type EpochDuration = ConstU64<{ DAYS }>; + type EpochDuration = ConstU64<{ 4 * 7 * DAYS }>; type ExpectedBlockTime = ConstU64<{ TARGET_BLOCK_TIME * 1000 }>; type EpochChangeTrigger = babe::ExternalTrigger;