[−][src]Trait pallet_staking::SessionInterface
Means for interacting with a specialized version of the session
trait.
This is needed because Staking
sets the ValidatorIdOf
of the pallet_session::Trait
Required methods
fn disable_validator(validator: &AccountId) -> Result<bool, ()>
Disable a given validator by stash ID.
Returns true
if new era should be forced at the end of this session.
This allows preventing a situation where there is too many validators
disabled and block production stalls.
fn validators() -> Vec<AccountId>
Get the validators from session.
fn prune_historical_up_to(up_to: SessionIndex)
Prune historical session tries up to but not including the given index.
Implementors
impl<T: Trait> SessionInterface<<T as Trait>::AccountId> for T where
T: Trait<ValidatorId = <T as Trait>::AccountId>,
T: Trait<FullIdentification = Exposure<<T as Trait>::AccountId, BalanceOf<T>>, FullIdentificationOf = ExposureOf<T>>,
T::SessionHandler: SessionHandler<<T as Trait>::AccountId>,
T::SessionManager: SessionManager<<T as Trait>::AccountId>,
T::ValidatorIdOf: Convert<<T as Trait>::AccountId, Option<<T as Trait>::AccountId>>,
[src]
T: Trait<ValidatorId = <T as Trait>::AccountId>,
T: Trait<FullIdentification = Exposure<<T as Trait>::AccountId, BalanceOf<T>>, FullIdentificationOf = ExposureOf<T>>,
T::SessionHandler: SessionHandler<<T as Trait>::AccountId>,
T::SessionManager: SessionManager<<T as Trait>::AccountId>,
T::ValidatorIdOf: Convert<<T as Trait>::AccountId, Option<<T as Trait>::AccountId>>,