Type Alias pallet_staking::DisabledValidators
source · pub type DisabledValidators<T: Config> = StorageValue<_GeneratedPrefixForStorageDisabledValidators<T>, Vec<u32>, 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 so that we can find whether a given validator has previously offended using binary search.
Storage type is [StorageValue
] with value type Vec < u32 >
.
Aliased Type§
struct DisabledValidators<T: Config>(/* private fields */);