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

Do not include invalid votes in listgovproposalvotes #1722

Closed
wants to merge 1 commit into from

Conversation

shohamc1
Copy link
Contributor

@shohamc1 shohamc1 commented Feb 1, 2023

What kind of PR is this?:

/kind fix

What this PR does / why we need it:

Only masternodes that are active and have minted at least one block are allowed to vote. getgovproposal was filtering the valid votes from the total set of votes whereas listgovproposalvotes was not, which is the reason for the discrepancy in #1721.

This is fixed by checking if a vote is valid on listgovproposalvotes as well.

Which issue(s) does this PR fixes?:

Fixes #1721

@Mixa84 Mixa84 added v/3.2.4 and removed v/3.2.3 labels Feb 3, 2023
@prasannavl
Copy link
Member

Superseded by #1725

@prasannavl prasannavl closed this Feb 6, 2023
@shohamc1 shohamc1 deleted the listgovproposalvotes-invalid-fix branch June 26, 2023 06:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Wrong Stats in getgovproposal
5 participants