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

[Tests] Check for diversified address equal to default one in zkeys_test #2165

Conversation

random-zebra
Copy link

Same issue as in #2123 but in a different place.
Apply the same fix.

auto dpa2 = sk2.ToXFVK().Address(diversifier).get().second;
while (dpa2 == defaultAddr2 && diversifier.begin()[0] < 255) {
diversifier.begin()[0] += 1;
Copy link

Choose a reason for hiding this comment

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

would be good to return the diversifier to 0 before enter in the loop. It could have been increased by the first loop.

Copy link
Author

Choose a reason for hiding this comment

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

Sure 👍 Updated.

furszy
furszy previously approved these changes Jan 27, 2021
Copy link

@furszy furszy left a comment

Choose a reason for hiding this comment

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

other than the comment, nice catch 👌

Copy link

@furszy furszy left a comment

Choose a reason for hiding this comment

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

nice catch, ACK 5272cb9

@random-zebra random-zebra merged commit 4491e3b into PIVX-Project:master Jan 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants