mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-28 22:37:57 +00:00
Collective pallet: max proposal weight (#13771)
* collective: max proposal weight * fix test --------- Co-authored-by: parity-processbot <>
This commit is contained in:
@@ -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 {}
|
||||
|
||||
Reference in New Issue
Block a user