mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-18 00:11:01 +00:00
Companion: Democracy add weight. (#1076)
This commit is contained in:
Generated
+129
-129
File diff suppressed because it is too large
Load Diff
@@ -337,6 +337,7 @@ parameter_types! {
|
|||||||
// One cent: $10,000 / MB
|
// One cent: $10,000 / MB
|
||||||
pub const PreimageByteDeposit: Balance = 10 * MILLICENTS;
|
pub const PreimageByteDeposit: Balance = 10 * MILLICENTS;
|
||||||
pub const InstantAllowed: bool = true;
|
pub const InstantAllowed: bool = true;
|
||||||
|
pub const MaxVotes: u32 = 100;
|
||||||
}
|
}
|
||||||
|
|
||||||
impl democracy::Trait for Runtime {
|
impl democracy::Trait for Runtime {
|
||||||
@@ -369,6 +370,7 @@ impl democracy::Trait for Runtime {
|
|||||||
type PreimageByteDeposit = PreimageByteDeposit;
|
type PreimageByteDeposit = PreimageByteDeposit;
|
||||||
type Slash = Treasury;
|
type Slash = Treasury;
|
||||||
type Scheduler = Scheduler;
|
type Scheduler = Scheduler;
|
||||||
|
type MaxVotes = MaxVotes;
|
||||||
}
|
}
|
||||||
|
|
||||||
parameter_types! {
|
parameter_types! {
|
||||||
|
|||||||
@@ -342,6 +342,7 @@ parameter_types! {
|
|||||||
// One cent: $10,000 / MB
|
// One cent: $10,000 / MB
|
||||||
pub const PreimageByteDeposit: Balance = 1 * CENTS;
|
pub const PreimageByteDeposit: Balance = 1 * CENTS;
|
||||||
pub const InstantAllowed: bool = false;
|
pub const InstantAllowed: bool = false;
|
||||||
|
pub const MaxVotes: u32 = 100;
|
||||||
}
|
}
|
||||||
|
|
||||||
impl democracy::Trait for Runtime {
|
impl democracy::Trait for Runtime {
|
||||||
@@ -374,6 +375,7 @@ impl democracy::Trait for Runtime {
|
|||||||
type PreimageByteDeposit = PreimageByteDeposit;
|
type PreimageByteDeposit = PreimageByteDeposit;
|
||||||
type Slash = Treasury;
|
type Slash = Treasury;
|
||||||
type Scheduler = Scheduler;
|
type Scheduler = Scheduler;
|
||||||
|
type MaxVotes = MaxVotes;
|
||||||
}
|
}
|
||||||
|
|
||||||
parameter_types! {
|
parameter_types! {
|
||||||
|
|||||||
Reference in New Issue
Block a user