Skip to content
Snippets Groups Projects
Commit 58121bf2 authored by Éloïs's avatar Éloïs
Browse files

mod: revisit all parameters value for gdev and gtest

parent 2f40fa05
No related branches found
No related tags found
No related merge requests found
...@@ -194,8 +194,8 @@ macro_rules! pallets_config { ...@@ -194,8 +194,8 @@ macro_rules! pallets_config {
type MemberId = IdtyIndex; type MemberId = IdtyIndex;
type MemberIdOf = Identity; type MemberIdOf = Identity;
type MaxAuthorities = MaxAuthorities; type MaxAuthorities = MaxAuthorities;
type MaxKeysLife = frame_support::pallet_prelude::ConstU32<1_000>; type MaxKeysLife = frame_support::pallet_prelude::ConstU32<1_500>;
type MaxOfflineSessions = frame_support::pallet_prelude::ConstU32<100>; type MaxOfflineSessions = frame_support::pallet_prelude::ConstU32<2_400>;
type RemoveMemberOrigin = EnsureRoot<Self::AccountId>; type RemoveMemberOrigin = EnsureRoot<Self::AccountId>;
} }
impl pallet_authorship::Config for Runtime { impl pallet_authorship::Config for Runtime {
...@@ -269,8 +269,8 @@ macro_rules! pallets_config { ...@@ -269,8 +269,8 @@ macro_rules! pallets_config {
type Currency = Balances; type Currency = Balances;
type Event = Event; type Event = Event;
type GetCurrentEpochIndex = GetCurrentEpochIndex<Self>; type GetCurrentEpochIndex = GetCurrentEpochIndex<Self>;
type MaxRequests = frame_support::traits::ConstU32<1_000>; type MaxRequests = frame_support::traits::ConstU32<100>;
type RequestPrice = frame_support::traits::ConstU64<200>; type RequestPrice = frame_support::traits::ConstU64<2_000>;
type OnFilledRandomness = Account; type OnFilledRandomness = Account;
type OnUnbalanced = Treasury; type OnUnbalanced = Treasury;
type CurrentBlockRandomness = pallet_babe::CurrentBlockRandomness<Self>; type CurrentBlockRandomness = pallet_babe::CurrentBlockRandomness<Self>;
...@@ -340,7 +340,7 @@ macro_rules! pallets_config { ...@@ -340,7 +340,7 @@ macro_rules! pallets_config {
type ProposalBond = ProposalBond; type ProposalBond = ProposalBond;
type ProposalBondMinimum = frame_support::traits::ConstU64<10_000>; type ProposalBondMinimum = frame_support::traits::ConstU64<10_000>;
type ProposalBondMaximum = ProposalBondMaximum; type ProposalBondMaximum = ProposalBondMaximum;
type MaxApprovals = frame_support::traits::ConstU32<10>; type MaxApprovals = frame_support::traits::ConstU32<100>;
type PalletId = TreasuryPalletId; type PalletId = TreasuryPalletId;
type RejectOrigin = TreasuryRejectOrigin; type RejectOrigin = TreasuryRejectOrigin;
type SpendFunds = TreasurySpendFunds<Self>; type SpendFunds = TreasurySpendFunds<Self>;
...@@ -482,12 +482,15 @@ macro_rules! pallets_config { ...@@ -482,12 +482,15 @@ macro_rules! pallets_config {
pallet_membership::Membership::<Runtime, Instance2>::count() pallet_membership::Membership::<Runtime, Instance2>::count()
} }
} }
parameter_types! {
pub const SmithsMotionDuration: BlockNumber = 7 * DAYS;
}
impl pallet_collective::Config<Instance2> for Runtime { impl pallet_collective::Config<Instance2> for Runtime {
type Origin = Origin; type Origin = Origin;
type Proposal = Call; type Proposal = Call;
type Event = Event; type Event = Event;
type MotionDuration = frame_support::pallet_prelude::ConstU32<10_000>; type MotionDuration = SmithsMotionDuration;
type MaxProposals = frame_support::pallet_prelude::ConstU32<10>; type MaxProposals = frame_support::pallet_prelude::ConstU32<20>;
type MaxMembers = frame_support::pallet_prelude::ConstU32<1_000>; type MaxMembers = frame_support::pallet_prelude::ConstU32<1_000>;
type MembersStorage = SmithMembersStorage; type MembersStorage = SmithMembersStorage;
type DefaultVote = SmithMembersDefaultVote; type DefaultVote = SmithMembersDefaultVote;
......
...@@ -154,7 +154,7 @@ parameter_types! { ...@@ -154,7 +154,7 @@ parameter_types! {
// Multisig // Multisig
parameter_types! { parameter_types! {
pub const MaxSignatories: u16 = 5; pub const MaxSignatories: u16 = 10;
} }
// Treasury // Treasury
......
...@@ -92,7 +92,7 @@ parameter_types! { ...@@ -92,7 +92,7 @@ parameter_types! {
// Multisig // Multisig
parameter_types! { parameter_types! {
pub const MaxSignatories: u16 = 5; pub const MaxSignatories: u16 = 10;
} }
// Treasury // Treasury
......
...@@ -104,7 +104,7 @@ parameter_types! { ...@@ -104,7 +104,7 @@ parameter_types! {
// Identity // Identity
frame_support::parameter_types! { frame_support::parameter_types! {
pub const ConfirmPeriod: BlockNumber = 8 * HOURS; pub const ConfirmPeriod: BlockNumber = DAYS;
pub const IdtyCreationPeriod: BlockNumber = DAYS; pub const IdtyCreationPeriod: BlockNumber = DAYS;
} }
...@@ -154,7 +154,7 @@ parameter_types! { ...@@ -154,7 +154,7 @@ parameter_types! {
// Multisig // Multisig
parameter_types! { parameter_types! {
pub const MaxSignatories: u16 = 5; pub const MaxSignatories: u16 = 10;
} }
// Treasury // Treasury
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment