Skip to content

Commit

Permalink
Move from 2048 to 1024 max nominators per validator (#1706)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdossa authored Aug 23, 2024
1 parent e5cc1de commit 7a2ede3
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pallets/runtime/develop/src/runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ parameter_types! {
pub const BondingDuration: sp_staking::EraIndex = 7;
pub const SlashDeferDuration: sp_staking::EraIndex = 4;
pub const RewardCurve: &'static PiecewiseLinear<'static> = &REWARD_CURVE;
pub const MaxNominatorRewardedPerValidator: u32 = 2048;
pub const MaxNominatorRewardedPerValidator: u32 = 1_024;
pub const OffendingValidatorsThreshold: Perbill = Perbill::from_percent(17);
pub const ElectionLookahead: BlockNumber = EPOCH_DURATION_IN_BLOCKS / 4;
pub const MaxIterations: u32 = 10;
Expand Down
2 changes: 1 addition & 1 deletion pallets/runtime/mainnet/src/runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ parameter_types! {
pub const BondingDuration: sp_staking::EraIndex = 28;
pub const SlashDeferDuration: sp_staking::EraIndex = 14; // 1/2 the bonding duration.
pub const RewardCurve: &'static PiecewiseLinear<'static> = &REWARD_CURVE;
pub const MaxNominatorRewardedPerValidator: u32 = 2048;
pub const MaxNominatorRewardedPerValidator: u32 = 1_024;
pub const OffendingValidatorsThreshold: Perbill = Perbill::from_percent(17);
pub const ElectionLookahead: BlockNumber = EPOCH_DURATION_IN_BLOCKS / 4;
pub const MaxIterations: u32 = 10;
Expand Down
2 changes: 1 addition & 1 deletion pallets/runtime/testnet/src/runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ parameter_types! {
pub const BondingDuration: sp_staking::EraIndex = 28;
pub const SlashDeferDuration: sp_staking::EraIndex = 14; // 1/2 the bonding duration.
pub const RewardCurve: &'static PiecewiseLinear<'static> = &REWARD_CURVE;
pub const MaxNominatorRewardedPerValidator: u32 = 2048;
pub const MaxNominatorRewardedPerValidator: u32 = 1_024;
pub const OffendingValidatorsThreshold: Perbill = Perbill::from_percent(17);
pub const ElectionLookahead: BlockNumber = EPOCH_DURATION_IN_BLOCKS / 4;
pub const MaxIterations: u32 = 10;
Expand Down
2 changes: 1 addition & 1 deletion pallets/runtime/tests/src/storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ parameter_types! {
pub const ElectionLookahead: BlockNumber = EPOCH_DURATION_IN_BLOCKS / 4;
pub const MaxIterations: u32 = 10;
pub MinSolutionScoreBump: Perbill = Perbill::from_rational(5u32, 10_000);
pub const MaxNominatorRewardedPerValidator: u32 = 2048;
pub const MaxNominatorRewardedPerValidator: u32 = 1_024;
pub const OffendingValidatorsThreshold: Perbill = Perbill::from_percent(17);
pub const IndexDeposit: Balance = DOLLARS;
pub const RewardCurve: &'static PiecewiseLinear<'static> = &REWARD_CURVE;
Expand Down

0 comments on commit 7a2ede3

Please sign in to comment.