File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -28,9 +28,14 @@ pub const COLLECTIVE_MAX_PROPOSALS: u32 = 100;
2828// Make sure that there are no more than `COLLECTIVE_MAX_MEMBERS` members elected via phragmen.
2929static_assertions:: const_assert!( COLLECTIVE_DESIRED_MEMBERS <= COLLECTIVE_MAX_MEMBERS ) ;
3030
31+ frame_support:: parameter_types! {
32+ pub MaxProposalWeight : Weight = sp_runtime:: Perbill :: from_percent( 50 ) * RuntimeBlockWeights :: get( ) . max_block;
33+ }
34+
3135impl pallet_collective:: Config < CouncilCollective > for Runtime {
3236 type DefaultVote = pallet_collective:: PrimeDefaultVote ;
3337 type MaxMembers = ConstU32 < COLLECTIVE_MAX_MEMBERS > ;
38+ type MaxProposalWeight = MaxProposalWeight ;
3439 type MaxProposals = ConstU32 < 100 > ;
3540 type MotionDuration = ConstU32 < { 3 * DAYS } > ;
3641 type Proposal = RuntimeCall ;
@@ -42,6 +47,7 @@ impl pallet_collective::Config<CouncilCollective> for Runtime {
4247impl pallet_collective:: Config < TechnicalCollective > for Runtime {
4348 type DefaultVote = pallet_collective:: PrimeDefaultVote ;
4449 type MaxMembers = ConstU32 < COLLECTIVE_MAX_MEMBERS > ;
50+ type MaxProposalWeight = MaxProposalWeight ;
4551 type MaxProposals = ConstU32 < 100 > ;
4652 type MotionDuration = ConstU32 < { 3 * DAYS } > ;
4753 type Proposal = RuntimeCall ;
Original file line number Diff line number Diff line change @@ -28,9 +28,14 @@ pub const COLLECTIVE_MAX_PROPOSALS: u32 = 100;
2828// Make sure that there are no more than `COLLECTIVE_MAX_MEMBERS` members elected via phragmen.
2929static_assertions:: const_assert!( COLLECTIVE_DESIRED_MEMBERS <= COLLECTIVE_MAX_MEMBERS ) ;
3030
31+ frame_support:: parameter_types! {
32+ pub MaxProposalWeight : Weight = sp_runtime:: Perbill :: from_percent( 50 ) * RuntimeBlockWeights :: get( ) . max_block;
33+ }
34+
3135impl pallet_collective:: Config < CouncilCollective > for Runtime {
3236 type DefaultVote = pallet_collective:: PrimeDefaultVote ;
3337 type MaxMembers = ConstU32 < COLLECTIVE_MAX_MEMBERS > ;
38+ type MaxProposalWeight = MaxProposalWeight ;
3439 type MaxProposals = ConstU32 < 100 > ;
3540 type MotionDuration = ConstU32 < { 7 * DAYS } > ;
3641 type Proposal = RuntimeCall ;
@@ -42,6 +47,7 @@ impl pallet_collective::Config<CouncilCollective> for Runtime {
4247impl pallet_collective:: Config < TechnicalCollective > for Runtime {
4348 type DefaultVote = pallet_collective:: PrimeDefaultVote ;
4449 type MaxMembers = ConstU32 < COLLECTIVE_MAX_MEMBERS > ;
50+ type MaxProposalWeight = MaxProposalWeight ;
4551 type MaxProposals = ConstU32 < 100 > ;
4652 type MotionDuration = ConstU32 < { 7 * DAYS } > ;
4753 type Proposal = RuntimeCall ;
Original file line number Diff line number Diff line change @@ -28,9 +28,14 @@ pub const COLLECTIVE_MAX_PROPOSALS: u32 = 100;
2828// Make sure that there are no more than `COLLECTIVE_MAX_MEMBERS` members elected via phragmen.
2929static_assertions:: const_assert!( COLLECTIVE_DESIRED_MEMBERS <= COLLECTIVE_MAX_MEMBERS ) ;
3030
31+ frame_support:: parameter_types! {
32+ pub MaxProposalWeight : Weight = sp_runtime:: Perbill :: from_percent( 50 ) * RuntimeBlockWeights :: get( ) . max_block;
33+ }
34+
3135impl pallet_collective:: Config < CouncilCollective > for Runtime {
3236 type DefaultVote = pallet_collective:: PrimeDefaultVote ;
3337 type MaxMembers = ConstU32 < COLLECTIVE_MAX_MEMBERS > ;
38+ type MaxProposalWeight = MaxProposalWeight ;
3439 type MaxProposals = ConstU32 < 100 > ;
3540 type MotionDuration = ConstU32 < { 3 * DAYS } > ;
3641 type Proposal = RuntimeCall ;
@@ -42,6 +47,7 @@ impl pallet_collective::Config<CouncilCollective> for Runtime {
4247impl pallet_collective:: Config < TechnicalCollective > for Runtime {
4348 type DefaultVote = pallet_collective:: PrimeDefaultVote ;
4449 type MaxMembers = ConstU32 < COLLECTIVE_MAX_MEMBERS > ;
50+ type MaxProposalWeight = MaxProposalWeight ;
4551 type MaxProposals = ConstU32 < 100 > ;
4652 type MotionDuration = ConstU32 < { 3 * DAYS } > ;
4753 type Proposal = RuntimeCall ;
Original file line number Diff line number Diff line change @@ -28,9 +28,14 @@ pub const COLLECTIVE_MAX_PROPOSALS: u32 = 100;
2828// Make sure that there are no more than `COLLECTIVE_MAX_MEMBERS` members elected via phragmen.
2929static_assertions:: const_assert!( COLLECTIVE_DESIRED_MEMBERS <= COLLECTIVE_MAX_MEMBERS ) ;
3030
31+ frame_support:: parameter_types! {
32+ pub MaxProposalWeight : Weight = sp_runtime:: Perbill :: from_percent( 50 ) * RuntimeBlockWeights :: get( ) . max_block;
33+ }
34+
3135impl pallet_collective:: Config < CouncilCollective > for Runtime {
3236 type DefaultVote = pallet_collective:: PrimeDefaultVote ;
3337 type MaxMembers = ConstU32 < COLLECTIVE_MAX_MEMBERS > ;
38+ type MaxProposalWeight = MaxProposalWeight ;
3439 type MaxProposals = ConstU32 < 100 > ;
3540 type MotionDuration = ConstU32 < { 3 * DAYS } > ;
3641 type Proposal = RuntimeCall ;
@@ -42,6 +47,7 @@ impl pallet_collective::Config<CouncilCollective> for Runtime {
4247impl pallet_collective:: Config < TechnicalCollective > for Runtime {
4348 type DefaultVote = pallet_collective:: PrimeDefaultVote ;
4449 type MaxMembers = ConstU32 < COLLECTIVE_MAX_MEMBERS > ;
50+ type MaxProposalWeight = MaxProposalWeight ;
4551 type MaxProposals = ConstU32 < 100 > ;
4652 type MotionDuration = ConstU32 < { 3 * DAYS } > ;
4753 type Proposal = RuntimeCall ;
You can’t perform that action at this time.
0 commit comments