Skip to content
Commit 6bfcfeed authored by Zeke Mostov's avatar Zeke Mostov Committed by GitHub
Browse files

Create trait for NPoS election algorithms (#9664)



* build the template, hand it over to zeke now.

* Tests working

* save wip

* Some updates

* Some cleanup

* mo cleanin

* Link to issue

* Apply suggestions from code review

Co-authored-by: default avatarKian Paimani <[email protected]>

* Apply suggestions from code review

Co-authored-by: default avatarKian Paimani <[email protected]>

* Apply suggestions from code review

Co-authored-by: default avatarKian Paimani <[email protected]>

* Apply suggestions from code review

Co-authored-by: default avatarKian Paimani <[email protected]>

* Bound accuracy for prepare_election_result

* Use npos_election::Error for phragmms

* save

* Apply suggestions from code review

* Simplify test to use Balancing::set

* Cargo.lock after build

* Revert "Cargo.lock after build"

This reverts commit 7d726c8efa687c09e4f377196b106eb9e9760487.

* Try reduce cargo.lock diff

* Update bin/node/runtime/src/lib.rs

* Comment

* Apply suggestions from code review

* Set balancing directly

* Document som pub items

* Update frame/election-provider-multi-phase/src/unsigned.rs

* Apply suggestions from code review

Co-authored-by: default avatarKian Paimani <[email protected]>

* Improve some comments

* Revert accidental change to random file

* tiney

* revert

Co-authored-by: default avatarkianenigma <[email protected]>
Co-authored-by: default avatarKian Paimani <[email protected]>
parent d1c28146
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment