Revise how staking configurations are set (#5018)

* Revise how staking configurations are set

companion PR to https://github.com/paritytech/substrate/pull/10955

* update lockfile for {"substrate"}

Co-authored-by: parity-processbot <>
This commit is contained in:
Falco Hirschenberger
2022-03-03 11:39:56 +01:00
committed by GitHub
parent 511344e86c
commit eaa96a27a3
4 changed files with 207 additions and 176 deletions
@@ -395,7 +395,17 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
// Storage: Staking ChillThreshold (r:0 w:1)
// Storage: Staking MaxNominatorsCount (r:0 w:1)
// Storage: Staking MinNominatorBond (r:0 w:1)
fn set_staking_configs() -> Weight {
fn set_staking_configs_all_set() -> Weight {
(2_647_000 as Weight)
.saturating_add(T::DbWeight::get().writes(6 as Weight))
}
// Storage: Staking MinCommission (r:0 w:1)
// Storage: Staking MinValidatorBond (r:0 w:1)
// Storage: Staking MaxValidatorsCount (r:0 w:1)
// Storage: Staking ChillThreshold (r:0 w:1)
// Storage: Staking MaxNominatorsCount (r:0 w:1)
// Storage: Staking MinNominatorBond (r:0 w:1)
fn set_staking_configs_all_remove() -> Weight {
(2_647_000 as Weight)
.saturating_add(T::DbWeight::get().writes(6 as Weight))
}