Unverified Commit cfcef38d authored by Kian Paimani's avatar Kian Paimani Committed by GitHub
Browse files

Companion Substaret/5683 (#1039)



* update polkadot

* Fix build

* Bump Substrate
Co-authored-by: default avatarGav Wood <gavin@parity.io>
parent 9ea8a852
Pipeline #89986 failed with stages
in 15 minutes and 44 seconds
This diff is collapsed.
......@@ -1781,6 +1781,7 @@ mod tests {
type ElectionLookahead = ElectionLookahead;
type Call = Call;
type UnsignedPriority = StakingUnsignedPriority;
type MaxIterations = ();
}
impl attestations::Trait for Test {
......
......@@ -844,6 +844,7 @@ mod tests {
type ElectionLookahead = ElectionLookahead;
type Call = Call;
type UnsignedPriority = StakingUnsignedPriority;
type MaxIterations = ();
}
impl timestamp::Trait for Test {
......
......@@ -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! {
......
......@@ -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! {
......
......@@ -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 {
......
......@@ -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! {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment