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
type ValidatorId: Member + Parameter
type ValidatorId: Member + Parameter
A stable ID for a validator.
type ValidatorIdOf: Convert<Self::AccountId, Option<Self::ValidatorId>>
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>
type ShouldEndSession: ShouldEndSession<Self::BlockNumber>
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
.
type SessionManager: SessionManager<Self::ValidatorId>
type SessionManager: SessionManager<Self::ValidatorId>
Handler for managing new session.
type SessionHandler: SessionHandler<Self::ValidatorId>
type SessionHandler: SessionHandler<Self::ValidatorId>
Handler when a session has changed.
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
type WeightInfo: WeightInfo
Weight information for extrinsics in this pallet.