pub type IndexAssignmentOf<T> = IndexAssignmentOf<SolutionOf<T>>;Expand description
The IndexAssignment type specialized for a
particular runtime T.
Aliased Type§
pub struct IndexAssignmentOf<T> {
pub who: <<T as MinerConfig>::Solution as NposSolution>::VoterIndex,
pub distribution: Vec<(<<T as MinerConfig>::Solution as NposSolution>::TargetIndex, <<T as MinerConfig>::Solution as NposSolution>::Accuracy)>,
}Fields§
§who: <<T as MinerConfig>::Solution as NposSolution>::VoterIndexIndex of the voter among the voters list.
distribution: Vec<(<<T as MinerConfig>::Solution as NposSolution>::TargetIndex, <<T as MinerConfig>::Solution as NposSolution>::Accuracy)>The distribution of the voter’s stake among winning targets.
Targets are identified by their index in the canonical list.