referrerpolicy=no-referrer-when-downgrade

Type Alias pallet_staking::ErasValidatorPrefs

source ·
pub type ErasValidatorPrefs<T: Config> = StorageDoubleMap<_GeneratedPrefixForStorageErasValidatorPrefs<T>, Twox64Concat, EraIndex, Twox64Concat, T::AccountId, ValidatorPrefs, ValueQuery>;
Expand description

Similar to ErasStakers, this holds the preferences of validators.

This is keyed first by the era index to allow bulk deletion and then the stash account.

Is it removed after Config::HistoryDepth eras.

Storage type is [StorageDoubleMap] with key1 type EraIndex, key2 type T :: AccountId and value type ValidatorPrefs.

Aliased Type§

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