pub type ProcessingOffence<T: Config> = StorageValue<_GeneratedPrefixForStorageProcessingOffence<T>, (EraIndex, T::AccountId, OffenceRecord<T::AccountId>)>;Expand description
Tracks the currently processed offence record from the OffenceQueue.
- When processing offences, an offence record is popped from the oldest era in
OffenceQueueand stored here. - The function
process_offencereads from this storage, processing one page of exposure at a time. - After processing a page, the
exposure_pagecount is decremented until it reaches zero. - Once fully processed, the offence record is removed from this storage.
This ensures that offences are processed incrementally, preventing excessive computation in a single block while maintaining correct slashing behavior.
Storage type is StorageValue with value type (EraIndex, T :: AccountId, slashing :: OffenceRecord < T :: AccountId >).
Aliased Typeยง
pub struct ProcessingOffence<T: Config>(/* private fields */);