Skip to content
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

fix: Count all MNs when calculating voting threshold #5584

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

UdjinM6
Copy link

@UdjinM6 UdjinM6 commented Sep 26, 2023

Issue being fixed or feature implemented

This is an alternative to #5583

What was done?

Adjust threshold calculations (instead of ignoring votes form invalid MNs)

How Has This Been Tested?

Breaking Changes

Proposals will need 441 absolute YES votes (vs 374 now). A couple of currently passing proposals won't pass in this version (unless they get more YES votes).

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated relevant unit/integration/functional/e2e tests
  • I have made corresponding changes to the documentation
  • I have assigned this pull request to a milestone (for repository code-owners and collaborators only)

src/qt/governancelist.cpp Outdated Show resolved Hide resolved
Co-authored-by: Konstantin Akimov <[email protected]>
Copy link
Collaborator

@ogabrielides ogabrielides left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK. This solution seems more straightforward.
Minor suggestion

src/governance/governance.cpp Outdated Show resolved Hide resolved
Co-authored-by: Odysseas Gabrielides <[email protected]>
Copy link
Collaborator

@ogabrielides ogabrielides left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@PastaPastaPasta PastaPastaPasta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NACK we should not be changing the threshold in such a way that requires 40+ more votes for stuff to pass.

@github-actions
Copy link

github-actions bot commented Oct 3, 2023

This pull request has conflicts, please rebase.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants