Type Alias pallet_beefy::pallet::SetIdSession
source · pub type SetIdSession<T: Config> = StorageMap<_GeneratedPrefixForStorageSetIdSession<T>, Twox64Concat, ValidatorSetId, SessionIndex>;
Expand description
A mapping from BEEFY set ID to the index of the most recent session for which its members were responsible.
This is only used for validating equivocation proofs. An equivocation proof must contains a key-ownership proof for a given session, therefore we need a way to tie together sessions and BEEFY set ids, i.e. we need to validate that a validator was the owner of a given key on a given session, and what the active set ID was during that session.
TWOX-NOTE: ValidatorSetId
is not under user control.
Storage type is [StorageMap
] with key type sp_consensus_beefy :: ValidatorSetId
and value type SessionIndex
.
Aliased Type§
struct SetIdSession<T: Config>(/* private fields */);