pub type AuthoredBlocks<T: Config> = StorageDoubleMap<_GeneratedPrefixForStorageAuthoredBlocks<T>, Twox64Concat, SessionIndex, Twox64Concat, ValidatorId<T>, u32, ValueQuery>;
Expand description

For each session index, we keep a mapping of ValidatorId<T> to the number of blocks authored by the given authority.

Storage type is [StorageDoubleMap] with key1 type SessionIndex, key2 type ValidatorId < T > and value type u32.

Aliased Type§

struct AuthoredBlocks<T: Config>(PhantomData<(_GeneratedPrefixForStorageAuthoredBlocks<T>, Twox64Concat, u32, Twox64Concat, <<T as Config>::ValidatorSet as ValidatorSet<<T as Config>::AccountId>>::ValidatorId, u32, ValueQuery, GetDefault, GetDefault)>);

Fields§

§0: PhantomData<(_GeneratedPrefixForStorageAuthoredBlocks<T>, Twox64Concat, u32, Twox64Concat, <<T as Config>::ValidatorSet as ValidatorSet<<T as Config>::AccountId>>::ValidatorId, u32, ValueQuery, GetDefault, GetDefault)>