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

Update database counter for reminted change #576

Merged
merged 1 commit into from
Aug 3, 2019
Merged

Conversation

riordant
Copy link
Contributor

@riordant riordant commented Aug 3, 2019

PR intention

The internal counter that chooses the next mint to use for change is not being updated. As a result, following a sigma spend involving reminting, the subsequent transaction uses the same mint as as the one previous.

Code changes brief

  • Add UpdateCountDB() to CommitSigmaTransaction. This simply writes the current nCountLastUse to the DB. If it hasn't changed, it has no effect.

  • Increased verbosity of logging for mint count

Copy link
Contributor

@psolstice psolstice left a comment

Choose a reason for hiding this comment

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

LGTM, works in my tests

@reubenyap reubenyap merged commit 39670ee into master Aug 3, 2019
@reubenyap reubenyap deleted the mint-change-fix branch August 3, 2019 15:57
@catchingknives catchingknives added this to the v0.13.8.3 milestone Aug 5, 2019
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.

5 participants