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

feat(x/gov): validators can only vote with own stake #20

Merged
merged 1 commit into from
Feb 21, 2024

Conversation

giunatale
Copy link
Collaborator

Change #7 so that validators are allowed to vote, but cannot use delegations in governance to increase their voting power, they can only vote with their own stake. This seems more sensible wrt the previous solution of removing their ability to vote entirely.

This also addresses #19 as I added comments in the README, and also che changelog should be good. Therefore with this PR we should be able to also merge the feat branch back into main and close #6

@giunatale giunatale mentioned this pull request Feb 21, 2024
9 tasks
Copy link
Collaborator

@tbruyelle tbruyelle left a comment

Choose a reason for hiding this comment

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

LGTM!

@giunatale giunatale merged commit f0a1898 into feat/custom-gov-module Feb 21, 2024
13 checks passed
@giunatale giunatale deleted the giunatale/validators-vote-tally branch February 21, 2024 13:41
tbruyelle added a commit that referenced this pull request Feb 22, 2024
While reviewing #20, I found that the tally result assertion was weak,
since it only ensures that the expected tally result is not empty.

This change improves that for tests that imply vote inheritance, the
first commit e257af4 re-enables vote
inheritance and improves the tally result assertion. The second commit
3696c7c disables vote inheritance again
and updates the assertions to show that vote inheritance is correctly
disabled (removing the `delTokens` additions in the expected tally
results).
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.

2 participants