Skip to content

Commit

Permalink
update some values
Browse files Browse the repository at this point in the history
  • Loading branch information
Aideepakchaudhary committed Oct 25, 2024
1 parent 0062d2d commit 1f6213d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions runtime/cere-dev/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -535,12 +535,12 @@ parameter_types! {
pub const BondingDuration: sp_staking::EraIndex = 3;
pub const SlashDeferDuration: sp_staking::EraIndex = 2;
pub const RewardCurve: &'static PiecewiseLinear<'static> = &REWARD_CURVE;
pub const MaxExposurePageSize: u32 = 64;
pub const MaxExposurePageSize: u32 = 512;
pub const MaxNominatorRewardedPerValidator: u32 = 256;
pub const OffendingValidatorsThreshold: Perbill = Perbill::from_percent(17);
pub OffchainRepeat: BlockNumber = 5;
pub const MaxNominations: u32 = <NposSolution16 as frame_election_provider_support::NposSolution>::LIMIT as u32;
pub const MaxControllersInDeprecationBatch: u32 = 751;
pub const MaxControllersInDeprecationBatch: u32 = 5900;
}

pub struct StakingBenchmarkingConfig;
Expand Down Expand Up @@ -1030,7 +1030,7 @@ impl pallet_identity::Config for Runtime {
type RegistrarOrigin = EitherOf<EnsureRoot<Self::AccountId>, GeneralAdmin>;
type OffchainSignature = Signature;
type SigningPublicKey = <Signature as Verify>::Signer;
type UsernameAuthorityOrigin = EnsureRoot<Self::AccountId>;
type UsernameAuthorityOrigin = EitherOf<EnsureRoot<Self::AccountId>, GeneralAdmin>;
type PendingUsernameExpiration = ConstU32<{ 7 * DAYS }>;
type MaxSuffixLength = ConstU32<7>;
type MaxUsernameLength = ConstU32<32>;
Expand Down
6 changes: 3 additions & 3 deletions runtime/cere/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -530,14 +530,14 @@ parameter_types! {
pub const BondingDuration: sp_staking::EraIndex = 3;
pub const SlashDeferDuration: sp_staking::EraIndex = 2;
pub const RewardCurve: &'static PiecewiseLinear<'static> = &REWARD_CURVE;
pub const MaxExposurePageSize: u32 = 64;
pub const MaxExposurePageSize: u32 = 512;
pub const MaxNominatorRewardedPerValidator: u32 = 512;
pub const OffendingValidatorsThreshold: Perbill = Perbill::from_percent(17);
pub OffchainRepeat: BlockNumber = 5;
pub HistoryDepth: u32 = 84;
// 16
pub const MaxNominations: u32 = <NposSolution16 as frame_election_provider_support::NposSolution>::LIMIT as u32;
pub const MaxControllersInDeprecationBatch: u32 = 751;
pub const MaxControllersInDeprecationBatch: u32 = 5900;
}

pub struct StakingBenchmarkingConfig;
Expand Down Expand Up @@ -1033,7 +1033,7 @@ impl pallet_identity::Config for Runtime {
type RegistrarOrigin = EitherOf<EnsureRoot<Self::AccountId>, GeneralAdmin>;
type OffchainSignature = Signature;
type SigningPublicKey = <Signature as Verify>::Signer;
type UsernameAuthorityOrigin = EnsureRoot<Self::AccountId>;
type UsernameAuthorityOrigin = EitherOf<EnsureRoot<Self::AccountId>, GeneralAdmin>;
type PendingUsernameExpiration = ConstU32<{ 7 * DAYS }>;
type MaxSuffixLength = ConstU32<7>;
type MaxUsernameLength = ConstU32<32>;
Expand Down

0 comments on commit 1f6213d

Please sign in to comment.