Skip to content

Commit 53cfc58

Browse files
committed
1 parent 62e70e1 commit 53cfc58

4 files changed

Lines changed: 24 additions & 0 deletions

File tree

runtime/crab/src/pallets/collective.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff 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.
2929
static_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+
3135
impl 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 {
4247
impl 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;

runtime/darwinia/src/pallets/collective.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff 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.
2929
static_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+
3135
impl 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 {
4247
impl 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;

runtime/pangolin/src/pallets/collective.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff 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.
2929
static_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+
3135
impl 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 {
4247
impl 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;

runtime/pangoro/src/pallets/collective.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff 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.
2929
static_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+
3135
impl 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 {
4247
impl 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;

0 commit comments

Comments
 (0)