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

Commit

Permalink
add max nominators param
Browse files Browse the repository at this point in the history
  • Loading branch information
Ank4n committed Aug 11, 2023
1 parent 42a49a5 commit 87d152b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
6 changes: 4 additions & 2 deletions runtime/kusama/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -557,8 +557,10 @@ parameter_types! {
27,
"DOT_SLASH_DEFER_DURATION"
);
pub const MaxExposurePageSize: u16 = 512;
pub const MaxExposurePageCount: u16 = 1;
pub const MaxExposurePageSize: u32 = 512;
pub const MaxExposurePageCount: u32 = 1;
pub const MaxNominatorRewardedPerValidator: u32 = MaxExposurePageSize::get() * MaxExposurePageCount::get();

pub const OffendingValidatorsThreshold: Perbill = Perbill::from_percent(17);
// 24
pub const MaxNominations: u32 = <NposCompactSolution24 as NposSolution>::LIMIT as u32;
Expand Down
5 changes: 3 additions & 2 deletions runtime/polkadot/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -538,8 +538,9 @@ parameter_types! {
"DOT_SLASH_DEFER_DURATION"
);
pub const RewardCurve: &'static PiecewiseLinear<'static> = &REWARD_CURVE;
pub const MaxExposurePageSize: u16 = 512;
pub const MaxExposurePageCount: u16 = 1;
pub const MaxExposurePageSize: u32 = 512;
pub const MaxExposurePageCount: u32 = 1;
pub const MaxNominatorRewardedPerValidator: u32 = MaxExposurePageSize::get() * MaxExposurePageCount::get();
pub const OffendingValidatorsThreshold: Perbill = Perbill::from_percent(17);
// 16
pub const MaxNominations: u32 = <NposCompactSolution16 as frame_election_provider_support::NposSolution>::LIMIT as u32;
Expand Down
5 changes: 3 additions & 2 deletions runtime/westend/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -501,8 +501,9 @@ parameter_types! {
// 1 era in which slashes can be cancelled (6 hours).
pub const SlashDeferDuration: sp_staking::EraIndex = 1;
pub const RewardCurve: &'static PiecewiseLinear<'static> = &REWARD_CURVE;
pub const MaxExposurePageSize: u16 = 64;
pub const MaxExposurePageCount: u16 = 10;
pub const MaxExposurePageSize: u32 = 64;
pub const MaxExposurePageCount: u32 = 10;
pub const MaxNominatorRewardedPerValidator: u32 = MaxExposurePageSize::get() * MaxExposurePageCount::get();
pub const OffendingValidatorsThreshold: Perbill = Perbill::from_percent(17);
pub const MaxNominations: u32 = <NposCompactSolution16 as frame_election_provider_support::NposSolution>::LIMIT as u32;
}
Expand Down

0 comments on commit 87d152b

Please sign in to comment.