pub type ReadySolutionOf<T> = ReadySolution<<T as MinerConfig>::AccountId, <T as MinerConfig>::MaxWinners, <T as MinerConfig>::MaxBackersPerWinner>;
Expand description
A ready solution parameterized with this pallet’s miner config.
Aliased Type§
struct ReadySolutionOf<T> {
pub supports: BoundedSupports<<T as MinerConfig>::AccountId, <T as MinerConfig>::MaxWinners, <T as MinerConfig>::MaxBackersPerWinner>,
pub score: ElectionScore,
pub compute: ElectionCompute,
}
Fields§
§supports: BoundedSupports<<T as MinerConfig>::AccountId, <T as MinerConfig>::MaxWinners, <T as MinerConfig>::MaxBackersPerWinner>
The final supports of the solution.
This is target-major vector, storing each winners, total backing, and each individual backer.
score: ElectionScore
The score of the solution.
This is needed to potentially challenge the solution.
compute: ElectionCompute
How this election was computed.