mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-28 16:47:57 +00:00
Companion for substrate#13771 (#6983)
* max proposal weight config
* update lockfile for {"substrate"}
---------
Co-authored-by: parity-processbot <>
This commit is contained in:
Generated
+183
-183
File diff suppressed because it is too large
Load Diff
@@ -99,6 +99,7 @@ parameter_types! {
|
||||
pub CouncilMotionDuration: BlockNumber = prod_or_fast!(7 * DAYS, 2 * MINUTES, "DOT_MOTION_DURATION");
|
||||
pub const CouncilMaxProposals: u32 = 100;
|
||||
pub const CouncilMaxMembers: u32 = 100;
|
||||
pub MaxProposalWeight: Weight = Perbill::from_percent(50) * BlockWeights::get().max_block;
|
||||
}
|
||||
|
||||
pub type CouncilCollective = pallet_collective::Instance1;
|
||||
@@ -112,6 +113,7 @@ impl pallet_collective::Config<CouncilCollective> for Runtime {
|
||||
type DefaultVote = pallet_collective::PrimeDefaultVote;
|
||||
type SetMembersOrigin = EnsureRoot<AccountId>;
|
||||
type WeightInfo = weights::pallet_collective_council::WeightInfo<Runtime>;
|
||||
type MaxProposalWeight = MaxProposalWeight;
|
||||
}
|
||||
|
||||
parameter_types! {
|
||||
@@ -171,6 +173,7 @@ impl pallet_collective::Config<TechnicalCollective> for Runtime {
|
||||
type DefaultVote = pallet_collective::PrimeDefaultVote;
|
||||
type SetMembersOrigin = EnsureRoot<AccountId>;
|
||||
type WeightInfo = weights::pallet_collective_technical_committee::WeightInfo<Runtime>;
|
||||
type MaxProposalWeight = MaxProposalWeight;
|
||||
}
|
||||
|
||||
impl pallet_membership::Config<pallet_membership::Instance1> for Runtime {
|
||||
|
||||
@@ -438,6 +438,7 @@ parameter_types! {
|
||||
pub CouncilMotionDuration: BlockNumber = prod_or_fast!(3 * DAYS, 2 * MINUTES, "ROC_MOTION_DURATION");
|
||||
pub const CouncilMaxProposals: u32 = 100;
|
||||
pub const CouncilMaxMembers: u32 = 100;
|
||||
pub MaxProposalWeight: Weight = Perbill::from_percent(50) * BlockWeights::get().max_block;
|
||||
}
|
||||
|
||||
type CouncilCollective = pallet_collective::Instance1;
|
||||
@@ -451,6 +452,7 @@ impl pallet_collective::Config<CouncilCollective> for Runtime {
|
||||
type DefaultVote = pallet_collective::PrimeDefaultVote;
|
||||
type SetMembersOrigin = EnsureRoot<AccountId>;
|
||||
type WeightInfo = weights::pallet_collective_council::WeightInfo<Runtime>;
|
||||
type MaxProposalWeight = MaxProposalWeight;
|
||||
}
|
||||
|
||||
parameter_types! {
|
||||
@@ -510,6 +512,7 @@ impl pallet_collective::Config<TechnicalCollective> for Runtime {
|
||||
type DefaultVote = pallet_collective::PrimeDefaultVote;
|
||||
type SetMembersOrigin = EnsureRoot<AccountId>;
|
||||
type WeightInfo = weights::pallet_collective_technical_committee::WeightInfo<Runtime>;
|
||||
type MaxProposalWeight = MaxProposalWeight;
|
||||
}
|
||||
|
||||
type MoreThanHalfCouncil = EitherOfDiverse<
|
||||
|
||||
Reference in New Issue
Block a user