Companion Substaret/5683 (#1039)

* update polkadot

* Fix build

* Bump Substrate

Co-authored-by: Gav Wood <gavin@parity.io>
This commit is contained in:
Kian Paimani
2020-04-27 20:34:46 +02:00
committed by GitHub
parent fb5421b1d6
commit 7076651c75
7 changed files with 149 additions and 129 deletions
+139 -129
View File
File diff suppressed because it is too large Load Diff
@@ -1781,6 +1781,7 @@ mod tests {
type ElectionLookahead = ElectionLookahead;
type Call = Call;
type UnsignedPriority = StakingUnsignedPriority;
type MaxIterations = ();
}
impl attestations::Trait for Test {
+1
View File
@@ -844,6 +844,7 @@ mod tests {
type ElectionLookahead = ElectionLookahead;
type Call = Call;
type UnsignedPriority = StakingUnsignedPriority;
type MaxIterations = ();
}
impl timestamp::Trait for Test {
+2
View File
@@ -308,6 +308,7 @@ 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;
}
impl staking::Trait for Runtime {
@@ -330,6 +331,7 @@ impl staking::Trait for Runtime {
type ElectionLookahead = ElectionLookahead;
type Call = Call;
type UnsignedPriority = StakingUnsignedPriority;
type MaxIterations = MaxIterations;
}
parameter_types! {
+2
View File
@@ -313,6 +313,7 @@ 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;
}
impl staking::Trait for Runtime {
@@ -335,6 +336,7 @@ impl staking::Trait for Runtime {
type ElectionLookahead = ElectionLookahead;
type Call = Call;
type UnsignedPriority = StakingUnsignedPriority;
type MaxIterations = MaxIterations;
}
parameter_types! {
+2
View File
@@ -288,6 +288,7 @@ parameter_types! {
pub const MaxNominatorRewardedPerValidator: u32 = 64;
pub const ElectionLookahead: BlockNumber = 0;
pub const StakingUnsignedPriority: TransactionPriority = TransactionPriority::max_value() / 2;
pub const MaxIterations: u32 = 10;
}
impl staking::Trait for Runtime {
@@ -310,6 +311,7 @@ impl staking::Trait for Runtime {
type ElectionLookahead = ElectionLookahead;
type Call = Call;
type UnsignedPriority = StakingUnsignedPriority;
type MaxIterations = MaxIterations;
}
impl grandpa::Trait for Runtime {
+2
View File
@@ -300,6 +300,7 @@ 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 = 10;
}
impl staking::Trait for Runtime {
@@ -322,6 +323,7 @@ impl staking::Trait for Runtime {
type ElectionLookahead = ElectionLookahead;
type Call = Call;
type UnsignedPriority = StakingUnsignedPriority;
type MaxIterations = MaxIterations;
}
parameter_types! {