This repository was archived by the owner on Nov 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Clean Phragmén Equlise API #5452
Merged
Merged
Changes from 15 commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
1b8afe7
Clean phragmen API and equalise()
kianenigma a7ebb44
Stabilize new api
kianenigma 5e4daec
Fix phragmen fuzzers
kianenigma 677a818
Master.into()
kianenigma fb4b183
More fixes
kianenigma be3333e
Master.into()
kianenigma 11b020b
Make fuzzers reproducible
kianenigma ece1b27
improvements
kianenigma af8481e
Make equalize update assignments as well.
kianenigma 2d6400a
total function for staked_assignment.
kianenigma 4a37ce8
Merge branch 'master' of github.com:paritytech/substrate into kiz-cle…
kianenigma 2ea5161
Fix fuzzer build
kianenigma 877e095
Merge branch 'master' of github.com:paritytech/substrate into kiz-cle…
kianenigma f69f5ed
Merge branch 'master' of github.com:paritytech/substrate into kiz-cle…
kianenigma 0058e30
remvoe TODO
kianenigma 267254d
Fix a bunch more.
kianenigma 7527bcc
Master.into()
kianenigma 6bff5cf
clean stray debug stuff
kianenigma 8e0cf52
Merge branch 'master' of github.com:paritytech/substrate into kiz-cle…
kianenigma 763a28a
Update primitives/phragmen/src/lib.rs
kianenigma 7a0f39e
fix range function
kianenigma cd91a0b
fix number generator
kianenigma f2fd743
Merge branch 'master' of github.com:paritytech/substrate into kiz-cle…
kianenigma File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gavofyork if it is okay to move your prime election code to use
u64(VoteWeight) instead ofBalanceOf<T>then this extra clone of all voters can be removed.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've changed it for now, correct me if it is wrong.