Trait pallet_session::Config[][src]

pub trait Config: Config {
    type Event: From<Event> + Into<<Self as Config>::Event>;
    type ValidatorId: Member + Parameter;
    type ValidatorIdOf: Convert<Self::AccountId, Option<Self::ValidatorId>>;
    type ShouldEndSession: ShouldEndSession<Self::BlockNumber>;
    type NextSessionRotation: EstimateNextSessionRotation<Self::BlockNumber>;
    type SessionManager: SessionManager<Self::ValidatorId>;
    type SessionHandler: SessionHandler<Self::ValidatorId>;
    type Keys: OpaqueKeys + Member + Parameter + Default;
    type DisabledValidatorsThreshold: Get<Perbill>;
    type WeightInfo: WeightInfo;
}

Associated Types

The overarching event type.

A stable ID for a validator.

A conversion from account ID to validator ID.

Its cost must be at most one storage read.

Indicator for when to end the session.

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.

Handler for managing new session.

Handler when a session has changed.

The keys.

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.

Weight information for extrinsics in this pallet.

Implementors