diff --git a/polkadot-parachains/statemine/src/lib.rs b/polkadot-parachains/statemine/src/lib.rs index a719f5d97a..a13bb9e452 100644 --- a/polkadot-parachains/statemine/src/lib.rs +++ b/polkadot-parachains/statemine/src/lib.rs @@ -636,10 +636,12 @@ impl cumulus_pallet_dmp_queue::Config for Runtime { type ExecuteOverweightOrigin = EnsureRoot; } +use sp_runtime::Perbill; parameter_types! { pub const Period: u32 = 6 * HOURS; pub const Offset: u32 = 0; pub const MaxAuthorities: u32 = 100_000; + pub const DisabledValidatorsThreshold: Perbill = Perbill::from_percent(17); } impl pallet_session::Config for Runtime { @@ -653,6 +655,7 @@ impl pallet_session::Config for Runtime { // Essentially just Aura, but lets be pedantic. type SessionHandler = ::KeyTypeIdProviders; type Keys = SessionKeys; + type DisabledValidatorsThreshold = DisabledValidatorsThreshold; type WeightInfo = weights::pallet_session::WeightInfo; } diff --git a/polkadot-parachains/statemint/src/lib.rs b/polkadot-parachains/statemint/src/lib.rs index 075706f256..e8bec0f600 100644 --- a/polkadot-parachains/statemint/src/lib.rs +++ b/polkadot-parachains/statemint/src/lib.rs @@ -599,10 +599,12 @@ impl cumulus_pallet_dmp_queue::Config for Runtime { type ExecuteOverweightOrigin = EnsureRoot; } +use sp_runtime::Perbill; parameter_types! { pub const Period: u32 = 6 * HOURS; pub const Offset: u32 = 0; pub const MaxAuthorities: u32 = 100_000; + pub const DisabledValidatorsThreshold: Perbill = Perbill::from_percent(17); } impl pallet_session::Config for Runtime { @@ -616,6 +618,7 @@ impl pallet_session::Config for Runtime { // Essentially just Aura, but lets be pedantic. type SessionHandler = ::KeyTypeIdProviders; type Keys = SessionKeys; + type DisabledValidatorsThreshold = DisabledValidatorsThreshold; type WeightInfo = weights::pallet_session::WeightInfo; } diff --git a/polkadot-parachains/westmint/src/lib.rs b/polkadot-parachains/westmint/src/lib.rs index f9bef70d25..08efd67182 100644 --- a/polkadot-parachains/westmint/src/lib.rs +++ b/polkadot-parachains/westmint/src/lib.rs @@ -598,10 +598,12 @@ impl cumulus_pallet_dmp_queue::Config for Runtime { type ExecuteOverweightOrigin = EnsureRoot; } +use sp_runtime::Perbill; parameter_types! { pub const Period: u32 = 6 * HOURS; pub const Offset: u32 = 0; pub const MaxAuthorities: u32 = 100_000; + pub const DisabledValidatorsThreshold: Perbill = Perbill::from_percent(17); } impl pallet_session::Config for Runtime { @@ -615,6 +617,7 @@ impl pallet_session::Config for Runtime { // Essentially just Aura, but lets be pedantic. type SessionHandler = ::KeyTypeIdProviders; type Keys = SessionKeys; + type DisabledValidatorsThreshold = DisabledValidatorsThreshold; type WeightInfo = weights::pallet_session::WeightInfo; }