[][src]Trait pallet_session::Trait

Associated Types

type Event: From<Event> + Into<Self::Event>

The overarching event type.

type ValidatorId: Member + Parameter

A stable ID for a validator.

type ValidatorIdOf: Convert<Self::AccountId, Option<Self::ValidatorId>>

A conversion from account ID to validator ID.

Its cost must be at most one storage read.

type ShouldEndSession: ShouldEndSession<Self::BlockNumber>

Indicator for when to end the session.

type NextSessionRotation: EstimateNextSessionRotation<Self::BlockNumber>

Something that can predict the next session rotation. This should typically come from the same logical unit that provides ShouldEndSession, yet, it gives a best effort estimate. It is helpful to implement EstimateNextNewSession.

type SessionManager: SessionManager<Self::ValidatorId>

Handler for managing new session.

type SessionHandler: SessionHandler<Self::ValidatorId>

Handler when a session has changed.

type Keys: OpaqueKeys + Member + Parameter + Default

The keys.

type DisabledValidatorsThreshold: Get<Perbill>

The fraction of validators set that is safe to be disabled.

After the threshold is reached disabled method starts to return true, which in combination with pallet_staking forces a new era.

type WeightInfo: WeightInfo

Weight information for extrinsics in this pallet.

Loading content...

Implementors

Loading content...