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.6k
Implement PJR checker #8160
Merged
Merged
Implement PJR checker #8160
Changes from 12 commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
58f4b61
Apply.
kianenigma 202981b
Merge remote-tracking branch 'origin/master' into prgn-npos-pjr
coriolinus 12f4636
get rid of glob import
coriolinus 834e675
use meaningful generic type name
coriolinus 963f48c
pjr_check operates on `Supports` struct used elsewhere
coriolinus 81a788a
improve algorithmic complexity of `prepare_pjr_input`
coriolinus dd83c66
fix rustdoc warnings
coriolinus 0e15efb
improve module docs
coriolinus 46a519d
typo
coriolinus d63ed93
simplify debug assertion
coriolinus 158d01a
add test finding the phase-change threshold value for a constructed s…
coriolinus 902c2df
add more threshold scenarios to disambiguate plausible interpretations
coriolinus 4cff663
add link to npos paper reference
coriolinus c47eba6
docs: staked_assignment -> supports
coriolinus a129534
add utility method for generating npos inputs
coriolinus 8049fcf
add a fuzzer which asserts that all unbalanced seq_phragmen are PJR
coriolinus 2451a86
assert in all cases, not just debug
coriolinus 1d4e2db
leverage a native solution to choose candidates
coriolinus fc64ff5
use existing helper methods
coriolinus f2f11bb
add pjr-check and incorporate into the fuzzer
coriolinus 8d63aa4
fix compilation errors
coriolinus ba36529
Enable manually setting iteration parameters in single run.
coriolinus 32da70d
update comment verbiage for accuracy
coriolinus 6419d17
it is valid in PJR for an elected candidate to have 0 support
coriolinus e582b14
Fix phragmen_pjr fuzzer
coriolinus 2f977df
restart ci; it appears to be stalled
coriolinus 8cda3af
use necessary import for no-std
coriolinus 9f928e3
use a more realistic distribution of voters and candidates
coriolinus 9c7fb95
identify specifically which PJR check may fail
coriolinus 06c0e8a
move candidate collection comment into correct place
coriolinus cabce8f
standard_threshold: use a calculation method which cannot overflow
coriolinus b761631
Apply suggestions from code review (update comments)
coriolinus eb94375
clarify the effectiveness bounds for t-pjr check
coriolinus 30d83da
Merge remote-tracking branch 'origin/master' into prgn-npos-pjr
coriolinus cf6a96b
how to spell "committee"
coriolinus 44c73ef
reorganize: high -> low abstraction
coriolinus f1721e0
ensure standard threshold calc cannot panic
coriolinus a98208f
Apply suggestions from code review
coriolinus 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
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.
Uh oh!
There was an error while loading. Please reload this page.