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

ticketvote: Cast vote error format. #1561

Merged
merged 6 commits into from
Nov 22, 2021
Merged

Conversation

amass01
Copy link
Member

@amass01 amass01 commented Oct 29, 2021

This commit changes the ErrorCode field in the CastVoteReply structs
to a pointer, in order to fix a bug where default error code value
ErrorCodeInvalid was returned on success.

After this, in case of success the error code pointer will be nil.


Closes #1557.

This commit changes the `ErrorCode` field in the `CastVoteReply` structs
to a pointer, in order to  fix a bug where default error code value
`ErrorCodeInvalid` was returned on success which is not correct.
After this, in case of success the error code pointer will be nil.
politeiawww/cmd/politeiavoter/trickle.go Show resolved Hide resolved
politeiawww/legacy/proposals.go Outdated Show resolved Hide resolved
Copy link
Member

@lukebp lukebp left a comment

Choose a reason for hiding this comment

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

tACK

This can't be merged until we're ready to push it to production since it breaks the politeiavoter error handling for the current release that is running on production.

@lukebp lukebp merged commit bc7da5b into decred:master Nov 22, 2021
@amass01 amass01 deleted the castvoteerror branch November 22, 2021 01: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.

ticketvote: Cast vote error format.
3 participants