complete rotation test for all networks

This commit is contained in:
akildemir
2024-02-12 14:36:56 +03:00
parent 24ff866684
commit e93dbedd6a
10 changed files with 215 additions and 70 deletions

View File

@@ -124,6 +124,8 @@ std = [
"pallet-transaction-payment-rpc-runtime-api/std",
]
fast-epoch = []
runtime-benchmarks = [
"sp-runtime/runtime-benchmarks",

View File

@@ -301,8 +301,14 @@ pub type MaxAuthorities = ConstU32<{ validator_sets::primitives::MAX_KEY_SHARES_
pub type ReportLongevity = <Runtime as pallet_babe::Config>::EpochDuration;
impl babe::Config for Runtime {
#[cfg(feature = "fast-epoch")]
#[allow(clippy::identity_op)]
type EpochDuration = ConstU64<{ DAYS / (24 * 60 * 2) }>; // 30 seconds
#[cfg(not(feature = "fast-epoch"))]
#[allow(clippy::identity_op)]
type EpochDuration = ConstU64<{ DAYS }>;
type ExpectedBlockTime = ConstU64<{ TARGET_BLOCK_TIME * 1000 }>;
type EpochChangeTrigger = babe::ExternalTrigger;
type DisabledValidators = ValidatorSets;