Module polkadot_runtime_common::elections [−][src]
Expand description
Code for elections.
Structs
The numbers configured here could always be more than the the maximum limits of staking pallet to ensure election snapshot will not run out of memory. For now, we set them to smaller values since the staking is bounded and the weight pipeline takes hours for this single pallet.
A source of random balance for the NPoS Solver, which is meant to be run by the off-chain worker election miner.
A limit for off-chain phragmen unsigned solution length.
A limit for off-chain phragmen unsigned solution submission.
Implementation of frame_election_provider_support::SortedListProvider
that updates the
bags-list but uses pallet_staking::Nominators
for iter
. This is meant to be a transitionary
implementation for runtimes to “test” out the bags-list by keeping it up to date, but not yet
using it for snapshot generation. In contrast, a “complete” implementation would use bags-list
for iter
.
Constants
Maximum number of iterations for balancing that will be executed in the embedded miner of pallet-election-provider-multi-phase.
Type Definitions
The election provider of the genesis
The accuracy type used for genesis election provider;