Enable Offchain Phragmén. (#940)

* fix for offchain phragmen

* Update unix time stuff
This commit is contained in:
Kian Paimani
2020-03-26 17:52:10 +01:00
committed by GitHub
parent 775ce50cc2
commit caa405e1eb
7 changed files with 4108 additions and 4258 deletions
+6
View File
@@ -236,6 +236,7 @@ impl session::Trait for Runtime {
type ValidatorId = AccountId;
type ValidatorIdOf = staking::StashOf<Self>;
type ShouldEndSession = Babe;
type NextSessionRotation = Babe;
type SessionManager = Staking;
type SessionHandler = <SessionKeys as OpaqueKeys>::KeyTypeIdProviders;
type Keys = SessionKeys;
@@ -267,6 +268,7 @@ parameter_types! {
pub const SlashDeferDuration: staking::EraIndex = 28;
pub const RewardCurve: &'static PiecewiseLinear<'static> = &REWARD_CURVE;
pub const MaxNominatorRewardedPerValidator: u32 = 64;
pub const ElectionLookahead: BlockNumber = 0;
}
impl staking::Trait for Runtime {
@@ -285,6 +287,10 @@ impl staking::Trait for Runtime {
type SessionInterface = Self;
type RewardCurve = RewardCurve;
type MaxNominatorRewardedPerValidator = MaxNominatorRewardedPerValidator;
type NextNewSession = Session;
type ElectionLookahead = ElectionLookahead;
type Call = Call;
type SubmitTransaction = system::offchain::TransactionSubmitter<(), Runtime, Extrinsic>;
}
impl grandpa::Trait for Runtime {