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

Neutral vote is mistakenly treated the same as a no-vote for on-chain gov #1704

Closed
uzyn opened this issue Jan 25, 2023 · 1 comment · Fixed by #1711
Closed

Neutral vote is mistakenly treated the same as a no-vote for on-chain gov #1704

uzyn opened this issue Jan 25, 2023 · 1 comment · Fixed by #1711
Assignees

Comments

@uzyn
Copy link
Contributor

uzyn commented Jan 25, 2023

Caution

As on-chain governance is activated soon and likely before this consensus error is able to be fixed, do not cast neutral votes before this bug is addressed or it would be counted as a no-vote.

Bug

What happened:

Neutral votes for CFP and VoC are counted the same as no-votes, it should not be that way.

Reference:

if (lround(voteYes * 10000.f / voters.size()) <= prop.approvalThreshold) {
cache.UpdateProposalStatus(propId, pindex->nHeight, CProposalStatusType::Rejected);
return true;
}

Example:

  • 1000 yesses, 200 nos, 5000 neutrals are currently mistakently marked as a failed CFP/DFIP.

What you expected to happen:

Neutral votes for CFP and VoC should not be counted as no-votes.

Example:

  • 1000 yesses, 200 nos, 5000 neutrals should be counted as a passing CFP/DFIP.
@defichain-bot
Copy link
Member

@uzyn: Thanks for opening an issue, it is currently awaiting triage.

The triage/accepted label can be added by foundation members by writing /triage accepted in a comment.

Details

I am a bot created to help the DeFiCh developers manage community feedback and contributions. You can check out my manifest file to understand my behavior and what I can do. If you want to use this for your project, you can check out the DeFiCh/oss-governance-bot repository.

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 a pull request may close this issue.

3 participants