pub type BlockPointsStore<T: Config> = StorageNMap<_GeneratedPrefixForStorageBlockPointsStore<T>, (NMapKey<Blake2_128Concat, SessionIndex>, NMapKey<Blake2_128Concat, AuthorOf<T>>), T::Points, OptionQuery>;Expand description
Author points accumulated per session.
This storage tracks block-level points awarded to authors for good behavior during block production. Each increment represents a positive contribution, such as successfully producing a block or validating transactions correctly.
Keyed by:
SessionIndex: the session in which points are earned.AuthorOf: the author receiving the points.
Value:
Config::Points: the total points accumulated by the author in that session.
Notes:
- This serves as the high-level points store for reward calculation.
- Each block-level good behavior contributes one point to this tally.
- Points are session-scoped and ephemeral; typically cleared after reward distribution.
- Can be used as a reference for evaluating other contributions or behaviors of authors.
Storage type is [StorageNMap] with keys type (SessionIndex, AuthorOf < T >) and value type T :: Points.
Aliased Typeยง
pub struct BlockPointsStore<T: Config>(/* private fields */);