Function pallet_staking::offchain_election::prepare_submission[][src]

pub fn prepare_submission<T: Config>(
    assignments: Vec<Assignment<T::AccountId, OffchainAccuracy>>,
    winners: Vec<(T::AccountId, ExtendedBalance)>,
    do_reduce: bool,
    maximum_weight: Weight
) -> Result<(Vec<ValidatorIndex>, CompactAssignments, ElectionScore, ElectionSize), OffchainElectionError>

Takes an election result and spits out some data that can be submitted to the chain.

This does a lot of stuff; read the inline comments.