Type Alias RecentElectedOn

Source
pub type RecentElectedOn<T: Config> = StorageValue<_GeneratedPrefixForStorageRecentElectedOn<T>, BlockNumberFor<T>, ValueQuery>;
Expand description

Tracks the most recent block number in which an election was conducted and successfully stored in Elected.

Acts as a quick reference for identifying the latest election round without scanning all historical data.

§Usage

  • Updated every time a new election result is finalized and stored.
  • Useful for logic that depends on the recency or periodicity of elections.

§Notes

  • Always holds a valid block number (ValueQuery).
  • Can be used to compute time intervals between election rounds.

Storage type is [StorageValue] with value type BlockNumberFor < T >.

Aliased Type§

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