Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
parity
Mirrored projects
polkadot
Commits
235fff77
Unverified
Commit
235fff77
authored
May 15, 2020
by
thiolliere
Committed by
GitHub
May 15, 2020
Browse files
Companion: Democracy add weight. (#1076)
parent
a7e57551
Pipeline
#92793
passed with stages
in 26 minutes and 32 seconds
Changes
3
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
Cargo.lock
View file @
235fff77
This diff is collapsed.
Click to expand it.
runtime/kusama/src/lib.rs
View file @
235fff77
...
...
@@ -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!
{
...
...
runtime/polkadot/src/lib.rs
View file @
235fff77
...
...
@@ -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!
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment