Trait frame_support::traits::ValidatorSet
source · [−]pub trait ValidatorSet<AccountId> {
type ValidatorId: Parameter;
type ValidatorIdOf: Convert<AccountId, Option<Self::ValidatorId>>;
fn session_index() -> SessionIndex;
fn validators() -> Vec<Self::ValidatorId>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
;
}
Expand description
A trait for online node inspection in a session.
Something that can give information about the current validator set.
Associated Types
type ValidatorId: Parameter
type ValidatorId: Parameter
Type for representing validator id in a session.
type ValidatorIdOf: Convert<AccountId, Option<Self::ValidatorId>>
type ValidatorIdOf: Convert<AccountId, Option<Self::ValidatorId>>
A type for converting AccountId
to ValidatorId
.
Required methods
fn session_index() -> SessionIndex
fn session_index() -> SessionIndex
Returns current session index.
fn validators() -> Vec<Self::ValidatorId>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
fn validators() -> Vec<Self::ValidatorId>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
Returns the active set of validators.