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

Ensure previous vote choices are remembered. #323

Merged
merged 1 commit into from
Feb 2, 2022

Conversation

jholdstock
Copy link
Member

This change ensures that old voting preferences are always remembered by the DB. The API for setting vote choices was previously a bit forgetful. Eg.

  1. Client sets vote choices { a: yes, b: yes }
  2. VSP stores { a: yes, b: yes }
  3. Client sets vote choices { a: no, c: no }
  4. VSP stores { a: no, c: no }

b: yes would previously have been forgotten, but now it is remembered

@dajohi dajohi merged commit dcbf8a2 into decred:master Feb 2, 2022
jholdstock added a commit to jholdstock/vspd that referenced this pull request Feb 2, 2022
@jholdstock jholdstock deleted the member branch September 20, 2023 08:22
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.

3 participants