-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use proposal ballots for voting state (#5559)
# Motivation There are multiple reports from users who can’t vote. We believe the root cause of this issue is the 100-ballot limit for neurons. If a user has voted on more than 100 proposals (a likely scenario over a 4-day period), they don’t receive ballots for proposals they’ve already voted on, which remain technically votable due to this limit. The suggested solution is to switch from using neuron ballots to proposal ballots when calculating the votable state. The utilities have already been already updated in `ic-js` - dfinity/ic-js#725 # Changes - `npm run upgrade:next` - Update the displayed votable neurons on proposal changes as well, since we use the proposal ballots to determine the neurons’ voting state. # Tests - Updated. - Manually 1. Created 100+ proposals. 2. Voted on them. 3. Ensured that some of them were still displayed as votable (due to the recentBallots limit). 4. Switched to the utilities that rely on the proposal ballots. 5. Verified that all the proposals previously displayed as votable (despite having already been voted on) were now displayed as voted. # Todos - [x] Add entry to changelog (if necessary).
- Loading branch information
1 parent
41b48fe
commit 6ad5330
Showing
8 changed files
with
249 additions
and
73 deletions.
There are no files selected for viewing
This file contains 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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 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.