-
Notifications
You must be signed in to change notification settings - Fork 920
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
Adds unique constraint on unblinded_tokens table #5683
Conversation
ff82bae
to
9adc0ec
Compare
"sIqey9z6yP2Zysp8jPzuABYo9cXEYB05m4WkwppzZkc=", | ||
"usjICudNQU9OUDM47IcEmgW753Kyaa7yEo9z30FsaFM=", | ||
"etDK97tchgvLzSFmzcGhGT34KaVa6DVUU2iNB9Urxgk=" | ||
"dgLbHfLuF+mam7rtR5KFURW3dFuUDv2Ej7vMJ3ymCjI=", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this file was changed so that all tokens are unique
"sIqey9z6yP2Zysp8jPzuABYo9cXEYB05m4WkwppzZkc=", | ||
"usjICudNQU9OUDM47IcEmgW753Kyaa7yEo9z30FsaFM=", | ||
"etDK97tchgvLzSFmzcGhGT34KaVa6DVUU2iNB9Urxgk=" | ||
"dgLbHfLuF+mam7rtR5KFURW3dFuUDv2Ej7vMJ3ymCjI=", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this file was changed so that all tokens are unique
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are db files in here for v13 and v25, but we're updating to v26 in this PR. Was that intentional?
@@ -393,6 +393,9 @@ struct UnblindedToken { | |||
double value; | |||
string creds_id; | |||
uint64 expires_at; | |||
uint64 redeemed_at; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we set these values when reading from the database, or only during testing?
@zenparsing yes v13 is intentional as tokens in that db were duplicated, so they were not correct. What I just did is set unique token values for them |
This is part of the resolution for the "BAT not transferring to/syncing up with Uphold account" issue. |
Resolves brave/brave-browser#9889
Submitter Checklist:
npm run lint
)git rebase master
(if needed).git rebase -i
to squash commits (if needed).Test Plan:
Reviewer Checklist:
After-merge Checklist:
changes has landed on.