Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
parity
Mirrored projects
polkadot
Commits
3b5bce88
Unverified
Commit
3b5bce88
authored
Jun 02, 2020
by
Kian Paimani
Committed by
GitHub
Jun 02, 2020
Browse files
Comanion for substrate/pull/6173 (#1184)
* Make it work * Upsub
parent
217083a9
Pipeline
#95046
passed with stages
in 21 minutes and 31 seconds
Changes
7
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
Cargo.lock
View file @
3b5bce88
This diff is collapsed.
Click to expand it.
runtime/common/src/parachains.rs
View file @
3b5bce88
...
...
@@ -1772,6 +1772,7 @@ mod tests {
type
Call
=
Call
;
type
UnsignedPriority
=
StakingUnsignedPriority
;
type
MaxIterations
=
();
type
MinSolutionScoreBump
=
();
}
impl
attestations
::
Trait
for
Test
{
...
...
runtime/common/src/registrar.rs
View file @
3b5bce88
...
...
@@ -846,6 +846,7 @@ mod tests {
type
Call
=
Call
;
type
UnsignedPriority
=
StakingUnsignedPriority
;
type
MaxIterations
=
();
type
MinSolutionScoreBump
=
();
}
impl
timestamp
::
Trait
for
Test
{
...
...
runtime/kusama/src/lib.rs
View file @
3b5bce88
...
...
@@ -287,7 +287,8 @@ parameter_types! {
pub
const
MaxNominatorRewardedPerValidator
:
u32
=
64
;
// quarter of the last session will be for election.
pub
const
ElectionLookahead
:
BlockNumber
=
EPOCH_DURATION_IN_BLOCKS
/
4
;
pub
const
MaxIterations
:
u32
=
5
;
pub
const
MaxIterations
:
u32
=
10
;
pub
MinSolutionScoreBump
:
Perbill
=
Perbill
::
from_rational_approximation
(
5u32
,
10_000
);
}
impl
staking
::
Trait
for
Runtime
{
...
...
@@ -311,6 +312,7 @@ impl staking::Trait for Runtime {
type
Call
=
Call
;
type
UnsignedPriority
=
StakingUnsignedPriority
;
type
MaxIterations
=
MaxIterations
;
type
MinSolutionScoreBump
=
MinSolutionScoreBump
;
}
parameter_types!
{
...
...
runtime/polkadot/src/lib.rs
View file @
3b5bce88
...
...
@@ -306,7 +306,8 @@ parameter_types! {
pub
const
MaxNominatorRewardedPerValidator
:
u32
=
64
;
// quarter of the last session will be for election.
pub
const
ElectionLookahead
:
BlockNumber
=
EPOCH_DURATION_IN_BLOCKS
/
16
;
pub
const
MaxIterations
:
u32
=
5
;
pub
const
MaxIterations
:
u32
=
10
;
pub
MinSolutionScoreBump
:
Perbill
=
Perbill
::
from_rational_approximation
(
5u32
,
10_000
);
}
impl
staking
::
Trait
for
Runtime
{
...
...
@@ -330,6 +331,7 @@ impl staking::Trait for Runtime {
type
Call
=
Call
;
type
UnsignedPriority
=
StakingUnsignedPriority
;
type
MaxIterations
=
MaxIterations
;
type
MinSolutionScoreBump
=
MinSolutionScoreBump
;
}
const
fn
deposit
(
items
:
u32
,
bytes
:
u32
)
->
Balance
{
...
...
runtime/test-runtime/src/lib.rs
View file @
3b5bce88
...
...
@@ -289,6 +289,7 @@ parameter_types! {
pub
const
ElectionLookahead
:
BlockNumber
=
0
;
pub
const
StakingUnsignedPriority
:
TransactionPriority
=
TransactionPriority
::
max_value
()
/
2
;
pub
const
MaxIterations
:
u32
=
10
;
pub
MinSolutionScoreBump
:
Perbill
=
Perbill
::
from_rational_approximation
(
5u32
,
10_000
);
}
impl
staking
::
Trait
for
Runtime
{
...
...
@@ -312,6 +313,7 @@ impl staking::Trait for Runtime {
type
Call
=
Call
;
type
UnsignedPriority
=
StakingUnsignedPriority
;
type
MaxIterations
=
MaxIterations
;
type
MinSolutionScoreBump
=
MinSolutionScoreBump
;
}
impl
grandpa
::
Trait
for
Runtime
{
...
...
runtime/westend/src/lib.rs
View file @
3b5bce88
...
...
@@ -278,6 +278,7 @@ parameter_types! {
// quarter of the last session will be for election.
pub
const
ElectionLookahead
:
BlockNumber
=
EPOCH_DURATION_IN_BLOCKS
/
4
;
pub
const
MaxIterations
:
u32
=
10
;
pub
MinSolutionScoreBump
:
Perbill
=
Perbill
::
from_rational_approximation
(
5u32
,
10_000
);
}
impl
staking
::
Trait
for
Runtime
{
...
...
@@ -301,6 +302,7 @@ impl staking::Trait for Runtime {
type
Call
=
Call
;
type
UnsignedPriority
=
StakingUnsignedPriority
;
type
MaxIterations
=
MaxIterations
;
type
MinSolutionScoreBump
=
MinSolutionScoreBump
;
}
parameter_types!
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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