Companion: Democracy add weight. (#1076)

This commit is contained in:
thiolliere
2020-05-15 13:48:11 +02:00
committed by GitHub
parent 6f1d6e9dcc
commit 3beecb028c
3 changed files with 133 additions and 129 deletions
+129 -129
View File
File diff suppressed because it is too large Load Diff
+2
View File
@@ -337,6 +337,7 @@ parameter_types! {
// One cent: $10,000 / MB
pub const PreimageByteDeposit: Balance = 10 * MILLICENTS;
pub const InstantAllowed: bool = true;
pub const MaxVotes: u32 = 100;
}
impl democracy::Trait for Runtime {
@@ -369,6 +370,7 @@ impl democracy::Trait for Runtime {
type PreimageByteDeposit = PreimageByteDeposit;
type Slash = Treasury;
type Scheduler = Scheduler;
type MaxVotes = MaxVotes;
}
parameter_types! {
+2
View File
@@ -342,6 +342,7 @@ parameter_types! {
// One cent: $10,000 / MB
pub const PreimageByteDeposit: Balance = 1 * CENTS;
pub const InstantAllowed: bool = false;
pub const MaxVotes: u32 = 100;
}
impl democracy::Trait for Runtime {
@@ -374,6 +375,7 @@ impl democracy::Trait for Runtime {
type PreimageByteDeposit = PreimageByteDeposit;
type Slash = Treasury;
type Scheduler = Scheduler;
type MaxVotes = MaxVotes;
}
parameter_types! {