-
Notifications
You must be signed in to change notification settings - Fork 872
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
Left sig right sig match failure #3819
Left sig right sig match failure #3819
Conversation
0ea7e0f
to
3708a5f
Compare
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++
CI shows several unrelated test failures. However, those failures cause the browser tests to abort early, meaning that the relevant browser tests to this PR are unable to run. The network audit step also fails for unrelated reasons. |
ce29c00
to
6dfe361
Compare
vendor/bat-native-ledger/src/bat/ledger/internal/contribution/phase_two.cc
Outdated
Show resolved
Hide resolved
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.
ledger_state is corrupted.
STR:
- claim grant
- do 5 BAT tips to verified publisher one after another
- open ledger_state
- transactions are created for 3 contributions that I did, but data in empty
"auto_contribute": true,
"transactions": [
{
"viewingId": "",
"surveyorId": "",
"rates": {},
"contribution_probi": "",
"submissionStamp": "",
"anonizeViewingId": "",
"registrarVK": "",
"masterUserToken": "",
"surveyorIds": [],
"votes": 0,
"ballots": []
},
{
"viewingId": "",
"surveyorId": "",
"rates": {},
"contribution_probi": "",
"submissionStamp": "",
"anonizeViewingId": "",
"registrarVK": "",
"masterUserToken": "",
"surveyorIds": [],
"votes": 0,
"ballots": []
},
{
"viewingId": "",
"surveyorId": "",
"rates": {},
"contribution_probi": "",
"submissionStamp": "",
"anonizeViewingId": "",
"registrarVK": "",
"masterUserToken": "",
"surveyorIds": [],
"votes": 0,
"ballots": []
}
],
found that transactions being deleted after restart is problem on master as well
…so it can be tested. There are no behavioral changes.
Resolves #6545 The code in PhaseTwo::PrepareBatchCallback assumed that surveyor IDs were unique, but they can be reused by different transactions. We were assigning prepareBallot objects meant for one viewing ID to ballots for another viewing ID. This caused the Anonize library to fail its signature checks. To fix this, pass the viewing ID for the current transaction when calling PhaseTwo::PrepareBatchCallback, and ensure that only ballots for that viewing ID are updated with prepareBallot objects.
6dfe361
to
31ea9b6
Compare
Failing CI steps are |
Updated milestone to be 0.74.x 😄 (since that is what master is, when this was merged) |
Submitter Checklist:
Resolves brave/brave-browser#6545
npm run lint
)git rebase master
(if needed).git rebase -i
to squash commits (if needed).Test Plan:
--enable-logging=stderr --vmodule=*rewards*=6 --rewards=staging=true,reconcile-interval=10,short-retries=true
to see log messages, use staging env, set short contribution interval, and short retry interval.Reviewer Checklist:
After-merge Checklist:
changes has landed on.