Remove Self vote from phragmen (#4081)

* first draft of everything that works

* Some test fixes
This commit is contained in:
Kian Paimani
2019-11-11 00:41:44 +01:00
committed by Bastian Köcher
parent b691cfe093
commit ed5d31a22b
6 changed files with 107 additions and 130 deletions
@@ -542,7 +542,6 @@ impl<T: Trait> Module<T> {
candidates,
voters_and_votes,
Self::locked_stake_of,
false,
);
let mut to_release_bond: Vec<T::AccountId> = Vec::with_capacity(desired_seats);
@@ -563,7 +562,6 @@ impl<T: Trait> Module<T> {
&new_set,
&phragmen_result.assignments,
Self::locked_stake_of,
false,
);
let to_balance = |e: ExtendedBalance|