Type Alias pallet_babe::pallet::SkippedEpochs
source · pub type SkippedEpochs<T> = StorageValue<_GeneratedPrefixForStorageSkippedEpochs<T>, BoundedVec<(u64, SessionIndex), ConstU32<100>>, ValueQuery>;
Expand description
A list of the last 100 skipped epochs and the corresponding session index when the epoch was skipped.
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 epoch indices, i.e. we need to validate that a validator was the owner of a given key on a given session, and what the active epoch index was during that session.
Storage type is [StorageValue
] with value type BoundedVec < (u64, SessionIndex), ConstU32 < 100 > >
.
Aliased Type§
struct SkippedEpochs<T>(/* private fields */);