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:Kian Paimani <5588131+kianenigma@users.noreply.github.com> * Apply suggestions from code review Co-authored-by:
Kian Paimani <5588131+kianenigma@users.noreply.github.com> * Apply suggestions from code review Co-authored-by:
Kian Paimani <5588131+kianenigma@users.noreply.github.com> * Apply suggestions from code review Co-authored-by:
Kian Paimani <5588131+kianenigma@users.noreply.github.com> * 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:
Kian Paimani <5588131+kianenigma@users.noreply.github.com> * Improve some comments * Revert accidental change to random file * tiney * revert Co-authored-by:
kianenigma <kian@parity.io> Co-authored-by:
Kian Paimani <5588131+kianenigma@users.noreply.github.com>
Showing
- substrate/bin/node/runtime/Cargo.toml 2 additions, 3 deletionssubstrate/bin/node/runtime/Cargo.toml
- substrate/bin/node/runtime/src/lib.rs 31 additions, 2 deletionssubstrate/bin/node/runtime/src/lib.rs
- substrate/frame/election-provider-multi-phase/src/lib.rs 20 additions, 17 deletionssubstrate/frame/election-provider-multi-phase/src/lib.rs
- substrate/frame/election-provider-multi-phase/src/mock.rs 7 additions, 4 deletionssubstrate/frame/election-provider-multi-phase/src/mock.rs
- substrate/frame/election-provider-multi-phase/src/signed.rs 2 additions, 1 deletionsubstrate/frame/election-provider-multi-phase/src/signed.rs
- substrate/frame/election-provider-multi-phase/src/unsigned.rs 49 additions, 59 deletions...trate/frame/election-provider-multi-phase/src/unsigned.rs
- substrate/frame/election-provider-support/src/lib.rs 69 additions, 1 deletionsubstrate/frame/election-provider-support/src/lib.rs
- substrate/primitives/npos-elections/Cargo.toml 2 additions, 1 deletionsubstrate/primitives/npos-elections/Cargo.toml
- substrate/primitives/npos-elections/src/phragmen.rs 10 additions, 10 deletionssubstrate/primitives/npos-elections/src/phragmen.rs
- substrate/primitives/npos-elections/src/phragmms.rs 11 additions, 7 deletionssubstrate/primitives/npos-elections/src/phragmms.rs
Please register or sign in to comment