Update EpochDuration in runtime

This commit is contained in:
Luke Parker 2024-03-22 16:18:01 -04:00
parent 6658d95c85
commit e861859dec
No known key found for this signature in database

View file

@ -314,12 +314,10 @@ pub type ReportLongevity = <Runtime as pallet_babe::Config>::EpochDuration;
impl babe::Config for Runtime { impl babe::Config for Runtime {
#[cfg(feature = "fast-epoch")] #[cfg(feature = "fast-epoch")]
#[allow(clippy::identity_op)] type EpochDuration = ConstU64<{ MINUTES / 2 }>; // 30 seconds
type EpochDuration = ConstU64<{ DAYS / (24 * 60 * 2) }>; // 30 seconds
#[cfg(not(feature = "fast-epoch"))] #[cfg(not(feature = "fast-epoch"))]
#[allow(clippy::identity_op)] type EpochDuration = ConstU64<{ 4 * 7 * DAYS }>;
type EpochDuration = ConstU64<{ DAYS }>;
type ExpectedBlockTime = ConstU64<{ TARGET_BLOCK_TIME * 1000 }>; type ExpectedBlockTime = ConstU64<{ TARGET_BLOCK_TIME * 1000 }>;
type EpochChangeTrigger = babe::ExternalTrigger; type EpochChangeTrigger = babe::ExternalTrigger;