mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 17:31:03 +00:00
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:
committed by
GitHub
parent
511344e86c
commit
eaa96a27a3
Generated
+174
-173
File diff suppressed because it is too large
Load Diff
@@ -395,7 +395,17 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
|||||||
// Storage: Staking ChillThreshold (r:0 w:1)
|
// Storage: Staking ChillThreshold (r:0 w:1)
|
||||||
// Storage: Staking MaxNominatorsCount (r:0 w:1)
|
// Storage: Staking MaxNominatorsCount (r:0 w:1)
|
||||||
// Storage: Staking MinNominatorBond (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)
|
(2_647_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().writes(6 as Weight))
|
.saturating_add(T::DbWeight::get().writes(6 as Weight))
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -397,7 +397,17 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
|||||||
// Storage: Staking ChillThreshold (r:0 w:1)
|
// Storage: Staking ChillThreshold (r:0 w:1)
|
||||||
// Storage: Staking MaxNominatorsCount (r:0 w:1)
|
// Storage: Staking MaxNominatorsCount (r:0 w:1)
|
||||||
// Storage: Staking MinNominatorBond (r:0 w:1)
|
// Storage: Staking MinNominatorBond (r:0 w:1)
|
||||||
fn set_staking_configs() -> Weight {
|
fn set_staking_configs_all_set() -> Weight {
|
||||||
|
(2_693_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_693_000 as Weight)
|
(2_693_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().writes(6 as Weight))
|
.saturating_add(T::DbWeight::get().writes(6 as Weight))
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -395,7 +395,17 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
|||||||
// Storage: Staking ChillThreshold (r:0 w:1)
|
// Storage: Staking ChillThreshold (r:0 w:1)
|
||||||
// Storage: Staking MaxNominatorsCount (r:0 w:1)
|
// Storage: Staking MaxNominatorsCount (r:0 w:1)
|
||||||
// Storage: Staking MinNominatorBond (r:0 w:1)
|
// Storage: Staking MinNominatorBond (r:0 w:1)
|
||||||
fn set_staking_configs() -> Weight {
|
fn set_staking_configs_all_set() -> Weight {
|
||||||
|
(2_729_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_729_000 as Weight)
|
(2_729_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().writes(6 as Weight))
|
.saturating_add(T::DbWeight::get().writes(6 as Weight))
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user