Kian Paimani
1519da95d7
Custom Codec Implenetation for NPoS Election ( #6720 )
...
* Fancy compact encode/decode impl for compact solution
* Make it optional
* Remove extra file
* Update primitives/npos-elections/compact/src/lib.rs
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
* Final fixes.
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
2020-08-11 10:33:30 +00:00
Gavin Wood
6bfbb7c6f1
Cleanup our sort usage ( #6754 )
2020-07-29 14:00:51 +02:00
Kian Paimani
c9fd0c964a
Properly filter out duplicate voters in elections. ( #6693 )
...
* Prevent duplicate voter
* Update primitives/npos-elections/src/lib.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2020-07-21 17:33:33 +02:00
pscott
046fda914a
Improve overall performance ( #6699 )
...
* Improve overall performance
* Clean up code
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Remove needless ::
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Remove needless ::
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
2020-07-21 14:46:49 +02:00
Benjamin Kampmann
629a801b6a
Fixup cargo unleash ( #6689 )
...
* Bumping to rc5
* Revert "Bumping to rc5"
This reverts commit 5a63a8230e5a12db1b4ce4ac62e4967c52291da7.
* Bumping for rc5, correctly this time
2020-07-21 10:26:47 +00:00
Benjamin Kampmann
f6ebd5f87d
Releasing rc4 – Rhinoceros ( #6515 )
...
Co-authored-by: Martin Pugh <pugh@s3kr.it >
2020-06-25 23:18:43 +02:00
Kian Paimani
e016a49322
Generic Normalize impl for arithmetic and npos-elections ( #6374 )
...
* add normalize
* better api for normalize
* Some grumbles
* Update primitives/arithmetic/src/lib.rs
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
* More great review grumbles
* Way better doc for everything.
* Some improvement
* Update primitives/arithmetic/src/lib.rs
Co-authored-by: Bernhard Schuster <bernhard@ahoi.io >
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
Co-authored-by: Bernhard Schuster <bernhard@ahoi.io >
2020-06-24 13:32:50 +00:00
Bastian Köcher
1951962836
sp-npos-elections should not depend on itself ( #6444 )
...
This removes the `dev-dependency` onto `sp-npos-elections` from itself.
A crate should not depend on itself directly, especially not to make any
macros work.
2020-06-20 11:49:18 +02:00
Benjamin Kampmann
881072e590
Intent to release rc3 ( #6290 )
2020-06-08 23:29:52 +02:00
Kian Paimani
8a8b4f99c3
Rename all the election operations ( #6245 )
...
* Rename and move sp-phragmen
* More renames for equalise
* Update main module doc
* Fix line width
* Line width
2020-06-05 17:33:13 +02:00