pub type MaxElected<T: Config> = StorageValue<_GeneratedPrefixForStorageMaxElected<T>, u32, ValueQuery>;Expand description
The upper bound on the number of authors that can be elected in a single election round.
§Behavior
- Acts as a hard cap on election size.
- Used by both
Config::FlatElectionModelandConfig::FairElectionModelto truncate or validate the elected authors list. - When
ForceMaxElectedis set totrue, any excess elected candidates beyond this value are automatically truncated before being persisted.
§Example
If MaxElected = 50, the election will never store more than 50 authors,
even if the algorithm produces 80 winners.
Storage type is [StorageValue] with value type u32.
Aliased Type§
pub struct MaxElected<T: Config>(/* private fields */);