diff --git a/node/runtime/src/lib.rs b/node/runtime/src/lib.rs index 8c116ed..4dd7329 100644 --- a/node/runtime/src/lib.rs +++ b/node/runtime/src/lib.rs @@ -32,7 +32,9 @@ use sr_api::impl_runtime_apis; use node_primitives::{AccountId, AccountIndex, Balance, BlockNumber, Hash, Index, Moment, Signature}; use rstd::prelude::*; -use sr_primitives::traits::{self, BlakeTwo256, Block as BlockT, NumberFor, SaturatedConversion, StaticLookup}; +use sr_primitives::traits::{ + self, BlakeTwo256, Block as BlockT, NumberFor, OpaqueKeys, SaturatedConversion, StaticLookup, +}; use sr_primitives::transaction_validity::TransactionValidity; use sr_primitives::weights::Weight; #[cfg(any(feature = "std", test))] @@ -245,7 +247,6 @@ impl authorship::Trait for Runtime { // TODO: Introduce some structure to tie these together to make it a bit less of a footgun. This // should be easy, since OneSessionHandler trait provides the `Key` as an associated type. #2858 -type SessionHandlers = (Grandpa, Babe, ImOnline, AuthorityDiscovery); parameter_types! { pub const DisabledValidatorsThreshold: Perbill = Perbill::from_percent(17); } @@ -255,7 +256,7 @@ impl session::Trait for Runtime { type ValidatorIdOf = staking::StashOf; type ShouldEndSession = Babe; type OnSessionEnding = Staking; - type SessionHandler = SessionHandlers; + type SessionHandler = ::KeyTypeIdProviders; type Keys = SessionKeys; type DisabledValidatorsThreshold = DisabledValidatorsThreshold; type SelectInitialValidators = Staking;