TrimmedVotes uses BTreeMap to sort voters by stake, which results in voters with the same stake to be dropped from election.
In case if desired_targets == total_voters (on private network) it results in immediate feasibility check failure in solution_weight->epm::mock_votes, as voters < desired_targets.
TrimmedVotes
usesBTreeMap
to sort voters by stake, which results in voters with the same stake to be dropped from election.In case if
desired_targets
==total_voters
(on private network) it results in immediate feasibility check failure insolution_weight
->epm::mock_votes
, asvoters < desired_targets
.