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

pool: Improve payment UUID with random value. #392

Merged
merged 1 commit into from
Sep 26, 2023

Conversation

jholdstock
Copy link
Member

The UUID used for the payment ID was not created with any randomness to it, leading to occasional test failures due to duplicated values. Appending a random value to the UUID helps to ensure uniqueness.

The commit also updates the database upgrade code to ensure the old payment ID format is used when performing the old version upgrade.

The UUID used for the payment ID was not created with any randomness to
it, leading to occasional test failures due to duplicated values.
Appending a random value to the UUID helps to ensure uniqueness.

The commit also updates the database upgrade code to ensure the old
payment ID format is used when performing the old version upgrade.
@jholdstock
Copy link
Member Author

Rebased this on #391 which means all of the changes to boltupgrades.go and boltupgrades_test.go are now gone. Everything else remains the same.

Copy link
Member

@davecgh davecgh left a comment

Choose a reason for hiding this comment

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

Still looks good. I haven't seen any more failures running the tests several times.

@jholdstock jholdstock merged commit 78e6177 into decred:master Sep 26, 2023
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