referrerpolicy=no-referrer-when-downgrade

Type Alias ProcessingOffence

Source
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 OffenceQueue and stored here.
  • The function process_offence reads from this storage, processing one page of exposure at a time.
  • After processing a page, the exposure_page count 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§

struct ProcessingOffence<T: Config>(/* private fields */);