Trait darwinia_staking::impls::SessionInterface
source · [−]pub trait SessionInterface<AccountId>: Config {
fn disable_validator(validator_index: u32) -> bool;
fn validators() -> Vec<AccountId>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
;
fn prune_historical_up_to(up_to: SessionIndex);
}
Expand description
Means for interacting with a specialized version of the session
trait.
This is needed because Staking
sets the ValidatorIdOf
of the pallet_session::Config
Required Methods
fn disable_validator(validator_index: u32) -> bool
fn disable_validator(validator_index: u32) -> bool
Disable the validator at the given index, returns false
if the validator was already
disabled or the index is out of bounds.
Get the validators from session.
fn prune_historical_up_to(up_to: SessionIndex)
fn prune_historical_up_to(up_to: SessionIndex)
Prune historical session tries up to but not including the given index.