Collective pallet: max proposal weight (#13771)

* collective: max proposal weight

* fix test

---------

Co-authored-by: parity-processbot <>
This commit is contained in:
Muharem Ismailov
2023-04-19 13:00:27 +02:00
committed by GitHub
parent e458bf3795
commit f8b77f64f3
5 changed files with 66 additions and 2 deletions
+2
View File
@@ -209,6 +209,7 @@ parameter_types! {
pub const MotionDuration: BlockNumber = MOTION_DURATION_IN_BLOCKS;
pub const MaxProposals: u32 = 100;
pub const MaxMembers: u32 = 100;
pub MaxProposalWeight: Weight = sp_runtime::Perbill::from_percent(50) * BlockWeights::get().max_block;
}
type CouncilCollective = pallet_collective::Instance1;
@@ -222,6 +223,7 @@ impl pallet_collective::Config<CouncilCollective> for Test {
type DefaultVote = pallet_collective::PrimeDefaultVote;
type WeightInfo = ();
type SetMembersOrigin = frame_system::EnsureRoot<Self::AccountId>;
type MaxProposalWeight = MaxProposalWeight;
}
impl example::Config for Test {}