-
Notifications
You must be signed in to change notification settings - Fork 888
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
Fixes contribution with unblinded tokens #4317
Conversation
@@ -157,7 +157,7 @@ void Unblinded::OnUnblindedTokens( | |||
continue; | |||
} | |||
|
|||
if (item->value + current_amount > reconcile.fee) { | |||
if (current_amount >= reconcile.fee) { |
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 is the fix as we decided to go over if needed
@@ -139,7 +148,8 @@ ledger::UnblindedTokenList DatabaseUnblindedToken::GetAllRecords( | |||
info->public_key = statement.ColumnString(2); | |||
info->value = statement.ColumnDouble(3); | |||
info->promotion_id = statement.ColumnString(4); | |||
info->expires_at = statement.ColumnInt64(5); | |||
info->expires_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.
this fixes ads grants as some may expired, but we don't want to exclude them
53a8b73
to
f81c80d
Compare
return false; | ||
} | ||
|
||
const std::string query = base::StringPrintf( |
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 fixes users in bad state
macos failed on |
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.
looks good from C++ POV
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
Reproduced the original issue using the following build:
|
@LaurenWags noticed that there was a discrepancy in the amount of BAT that was being deducted from the account when tipping. @NejcZdovc mentioned that the server side fix hasn't been pushed. Waiting on @evq to fix the above server side. Once the fix has been pushed, @LaurenWags and myself will go through the cases outlined via #4317 (comment). If things are looking good, we'll continue with the uplift process for both #4341 & #4342. |
As per earlier meetings, the a-c cases will be checked via brave/brave-browser#7709. |
Verification PASSED on
Verification PASSED on
Other checks performed:
Verification PASSED on
|
Resolves brave/brave-browser#7608
Submitter Checklist:
npm run lint
)git rebase master
(if needed).git rebase -i
to squash commits (if needed).Test Plan:
test plan defined in brave/brave-browser#7608
Reviewer Checklist:
After-merge Checklist:
changes has landed on.