pub struct OnChainExecution<T: Config>(_);
A simple on-chain implementation of the election provider trait.
This implements both
This type has some utilities to make it safe. Nonetheless, it should be used with utmost care. A
thoughtful value must be set as
Config::Bounds to ensure the size of the input is sensible.
Indicate if this election provider is currently ongoing an asynchronous election or not.
Performs the election. This should be implemented as a self-weighing function. The
implementor should register its appropriate weight at the end of execution with the
system pallet directly.
The account identifier type.
The block number type.
The error type that is returned by the provider.
The upper bound on election winners that can be returned. Read more
The data provider of the election.
checked call to
ensuring the value never exceeds