Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

companion for #11703 #5795

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions runtime/kusama/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,10 @@ parameter_types! {
/// ... and all of the validators as electable targets. Whilst this is the case, we cannot and
/// shall not increase the size of the validator intentions.
pub const MaxElectableTargets: u16 = u16::MAX;

/// The submission during the emergency phase will require double the
/// deposit.
pub const EmergencyDepositMultiplier: u16 = 2;
}

generate_solution_type!(
Expand Down Expand Up @@ -499,6 +503,7 @@ impl pallet_election_provider_multi_phase::Config for Runtime {
type WeightInfo = weights::pallet_election_provider_multi_phase::WeightInfo<Self>;
type MaxElectingVoters = MaxElectingVoters;
type MaxElectableTargets = MaxElectableTargets;
type EmergencyDepositMultiplier = EmergencyDepositMultiplier;
}

parameter_types! {
Expand Down
5 changes: 5 additions & 0 deletions runtime/polkadot/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,10 @@ parameter_types! {
/// ... and all of the validators as electable targets. Whilst this is the case, we cannot and
/// shall not increase the size of the validator intentions.
pub const MaxElectableTargets: u16 = u16::MAX;

/// The submission during the emergency phase will require double the
/// deposit.
pub const EmergencyDepositMultiplier: u16 = 2;
}

generate_solution_type!(
Expand Down Expand Up @@ -540,6 +544,7 @@ impl pallet_election_provider_multi_phase::Config for Runtime {
type WeightInfo = weights::pallet_election_provider_multi_phase::WeightInfo<Self>;
type MaxElectingVoters = MaxElectingVoters;
type MaxElectableTargets = MaxElectableTargets;
type EmergencyDepositMultiplier = EmergencyDepositMultiplier;
}

parameter_types! {
Expand Down
5 changes: 5 additions & 0 deletions runtime/westend/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,10 @@ parameter_types! {
/// ... and all of the validators as electable targets. Whilst this is the case, we cannot and
/// shall not increase the size of the validator intentions.
pub const MaxElectableTargets: u16 = u16::MAX;

/// The submission during the emergency phase will require double the
/// deposit.
pub const EmergencyDepositMultiplier: u16 = 2;
}

frame_election_provider_support::generate_solution_type!(
Expand Down Expand Up @@ -448,6 +452,7 @@ impl pallet_election_provider_multi_phase::Config for Runtime {
type WeightInfo = weights::pallet_election_provider_multi_phase::WeightInfo<Self>;
type MaxElectingVoters = MaxElectingVoters;
type MaxElectableTargets = MaxElectableTargets;
type EmergencyDepositMultiplier = EmergencyDepositMultiplier;
}

parameter_types! {
Expand Down