Function sp_npos_elections::pjr::pjr_check
source · pub fn pjr_check<AccountId: IdentifierT>(
supports: &Supports<AccountId>,
all_candidates: Vec<AccountId>,
all_voters: Vec<(AccountId, VoteWeight, Vec<AccountId>)>,
) -> Result<(), AccountId>
Expand description
Check a solution to be PJR.
The PJR property is true if t-PJR
is true when t == sum(stake) / committee_size
.