-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dao fix majorityvote issue #2371
Dao fix majorityvote issue #2371
Conversation
We need to add any valid vote reveal tx / blind vote tx pair for the majority hash calculation even if the blind vote payload is missing as that could be relevant for the majority hash calculation. We add an empty ballotList and meritList in such cases.
Needs more testing before merge. |
We had 2 times the onParseTxsComplete called in the version before
To avoid empty handlers I have set all methods to default so the client code implements only the used one. Move handler code from onNewBlockHeight to onParseTxsCompleteAfterBatchProcessing to avoid too much UI updates while parsing.
@sqrrm I have tested now with different scenarios with blind vote missing, ignore merit for majorit hash case,... Could you give it a critical review and test cycle as well? |
# Conflicts: # desktop/src/main/java/bisq/desktop/main/dao/governance/make/MakeProposalView.java
I am looking at this but it will take a while as it's rather complicated. @ripcurlx hope to be done before the next release as I think this is quite important to get in. |
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.
utACK
desktop/src/main/java/bisq/desktop/main/dao/governance/result/VoteResultView.java
Outdated
Show resolved
Hide resolved
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.
utACK
I added some refactoring as a PR to manfred's repo. Had to refactor to understand what's going on. I haven't tested this yet.
Refactor voteresult to make it easier to understand
@sqrrm I will merge to not delay release, but please go on testing, its a very critical PR. |
Fixes #2362