diff --git a/src/frame/session.rs b/src/frame/session.rs index 7971455893..2faa6ae979 100644 --- a/src/frame/session.rs +++ b/src/frame/session.rs @@ -72,6 +72,22 @@ pub struct ValidatorsStore { pub _runtime: PhantomData, } +/// The queued keys for the next session. +#[derive(Encode, Store, Debug)] +pub struct QueuedKeysStore { + #[store(returns = Vec<(::ValidatorId, T::Keys)>)] + /// Marker for the runtime + pub _runtime: PhantomData, +} + +/// The next session keys for a validator. +#[derive(Encode, Store, Debug)] +pub struct NextKeysStore<'a, T: Session> { + #[store(returns = Option<::Keys>)] + /// The validator account. + pub validator_id: &'a ::ValidatorId, +} + default_impl!(ValidatorsStore); /// Set the session keys for a validator.