-
Notifications
You must be signed in to change notification settings - Fork 98
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
Governance Proposal voting #1683
Comments
is double voting supposed to be permitted? |
no. but you can change your vote. |
you can vote as many times as you want if the proposal is still on voting period. You just need to pay gas every time |
isn't the sequence number supposed to address this? |
yes you are right, maybe there is a bug in incrementing the sequence on our side. |
I would still disable the option to vote for the same for a better UX. |
I had to restart fresh. I'll update the steps to reproduce |
but if a user is allowed to vote more than once - shouldn't we permit this? |
I suppose this would only confuse the user. "Have I voted already? Why can I vote 'Yes' again?". I would disable all options, that don't bring any value to the user. |
We should display the previous vote by the user somewhere on the proposal, that's the main issue here imo. Thus, I disagree with disabling voting for the same option, if users want to throw away their funds we shouldn't prevent them to do so 💸 |
what's the reasoning here? |
I guess the question is more why are you preventing them to do it ? I know it's not "bringing value" but if they choose to do so then be it |
maybe add an additional confirmation with a note like |
reduced complexity is always better for UX. preventing users to make errors as well. We are also i.e. validating form inputs. just because the user is in theory able to perform some action in the backend shouldn't mean the UI allows the user to do so. |
So the outcome for this if I got it correctly should be:
|
nice to have: show the datetime of your vote
|
is "voting again" the same as changing your vote? if i vote "yes" and "no" on the same proposal - what is the expected result? |
that your final vote is "No" |
so it's not "voting again" then - it's "changing your vote" - which should be permitted @faboweb ... but we will need to indicate what the users last vote was. 👍 |
I am all for "changing your vote". I understood the discussion was around if we should allow "voting again" (with the same option). |
ahhhh. yes, we should not allow a user to vote the same way again. i understand and agree. |
UI Version: 0.X.X
Description:
Problem
After double voting on a proposal I get an error message saying that my action is already in the cache and I'm prevented to act on this proposal and on others too.
Steps
Possible solution
As far as I understood the root cause is the double voting with identical value, it will try to create two identical blocks, we can prevent this by storing in the state the last vote and disable just that value so you can't vote twice with the same value
Related: cosmos/cosmos-sdk#3002
The text was updated successfully, but these errors were encountered: