pub trait ValidatorSet<AccountId> {
    type ValidatorId: Parameter + MaxEncodedLen;
    type ValidatorIdOf: Convert<AccountId, Option<Self::ValidatorId>>;

    fn session_index() -> SessionIndex;
    fn validators() -> Vec<Self::ValidatorId> ;
Expand description

A trait for online node inspection in a session.

Something that can give information about the current validator set.

Required Associated Types

Type for representing validator id in a session.

A type for converting AccountId to ValidatorId.

Required Methods

Returns current session index.

Returns the active set of validators.