Type Alias pallet_staking::DisabledValidators
source · pub type DisabledValidators<T: Config> = StorageValue<_GeneratedPrefixForStorageDisabledValidators<T>, Vec<(u32, OffenceSeverity)>, ValueQuery>;
Expand description
Indices of validators that have offended in the active era. The offenders are disabled for a
whole era. For this reason they are kept here - only staking pallet knows about eras. The
implementor of DisablingStrategy
defines if a validator should be disabled which
implicitly means that the implementor also controls the max number of disabled validators.
The vec is always kept sorted based on the u32 index so that we can find whether a given validator has previously offended using binary search.
Additionally, each disabled validator is associated with an OffenceSeverity
which
represents how severe is the offence that got the validator disabled.
Storage type is [StorageValue
] with value type Vec < (u32, OffenceSeverity) >
.
Aliased Type§
struct DisabledValidators<T: Config>(/* private fields */);