pub type OffenceQueue<T: Config> = StorageDoubleMap<_GeneratedPrefixForStorageOffenceQueue<T>, Twox64Concat, EraIndex, Twox64Concat, T::AccountId, OffenceRecord<T::AccountId>>;
Expand description
Stores reported offences in a queue until they are processed in subsequent blocks.
Each offence is recorded under the corresponding era index and the offending validator’s
account. If an offence spans multiple pages, only one page is processed at a time. Offences
are handled sequentially, with their associated slashes computed and stored in
UnappliedSlashes
. These slashes are then applied in a future era as determined by
SlashDeferDuration
.
Any offences tied to an era older than BondingDuration
are automatically dropped.
Processing always prioritizes the oldest era first.
Storage type is [StorageDoubleMap
] with key1 type EraIndex, key2 type T :: AccountId and value type slashing :: OffenceRecord < T :: AccountId >.
Aliased Type§
struct OffenceQueue<T: Config>(/* private fields */);