Type Definition 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 HISTORY_DEPTH
eras.
Storage type is StorageDoubleMap
with key1 type EraIndex, key2 type T :: AccountId and value type ValidatorPrefs.