Bump Nominator Reward Limits (#1668)

* Add reward limits

* Fix weight tests and whatnot

* add weight files

* Update runtime/kusama/src/lib.rs

* "Update Substrate"

Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com>
Co-authored-by: parity-processbot <>
This commit is contained in:
Kian Paimani
2020-09-16 14:47:54 +02:00
committed by GitHub
parent 994e5dc29b
commit b9d36c70e8
11 changed files with 715 additions and 158 deletions
+2 -2
View File
@@ -317,7 +317,7 @@ parameter_types! {
// 27 eras in which slashes can be cancelled (slightly less than 7 days).
pub const SlashDeferDuration: pallet_staking::EraIndex = 27;
pub const RewardCurve: &'static PiecewiseLinear<'static> = &REWARD_CURVE;
pub const MaxNominatorRewardedPerValidator: u32 = 64;
pub const MaxNominatorRewardedPerValidator: u32 = 256;
// quarter of the last session will be for election.
pub const ElectionLookahead: BlockNumber = EPOCH_DURATION_IN_BLOCKS / 4;
pub const MaxIterations: u32 = 10;
@@ -352,7 +352,7 @@ impl pallet_staking::Trait for Runtime {
type UnsignedPriority = StakingUnsignedPriority;
type MaxIterations = MaxIterations;
type MinSolutionScoreBump = MinSolutionScoreBump;
type WeightInfo = ();
type WeightInfo = weights::pallet_staking::WeightInfo;
}
parameter_types! {