referrerpolicy=no-referrer-when-downgrade

Module onchain

Source
Expand description

An implementation of ElectionProvider that uses an NposSolver to do the election. As the name suggests, this is meant to be used onchain. Given how heavy the calculations are, please be careful when using it onchain.

Structs§

OnChainExecution
A simple on-chain implementation of the election provider trait.

Enums§

Error
Errors of the on-chain election.

Traits§

Config
Configuration trait for an onchain election execution.

Type Aliases§

BoundedExecutionDeprecated