-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Rewards wallet is not regenerated when wallet data is unreadable #18717
Labels
Milestone
Comments
24 tasks
Verified
|
Brave | 1.32.81 Chromium: 95.0.4638.54 (Official Build) beta (x86_64) |
---|---|
Revision | d31a821ec901f68d0d34ccdbaea45b4c86ce543e-refs/branch-heads/4638@{#871} |
OS | macOS Version 11.6.1 (Build 20G224) |
New Profile
Steps:
- new profile
- launched Brave
- opened a new-tab page
- clicked on
Start using Rewards
- triggered an ad; confirmed I got credited for viewing it
- shut down Brave
- edited
Preferences
and removed thepayment_id
snippet - relaunched Brave
- triggered and viewed push-notification ads, an inline-content ad, and a promoted-content ad
- confirmed I was given BAT for the above
- opened
brave://rewards-internals
Confirmed:
- previous (corrupted) wallet ID is displayed
- newly created wallet ID is displayed
- there's an event in the log recording that wallet corruption was detected
example | example | example | example | example | example | example | example | example |
---|---|---|---|---|---|---|---|---|
Upgrade from 1.31.x to 1.32.x
Steps:
- installed
1.31.87
- launched Brave
- enabled Rewards
- viewed a few ads
- shut down Brave
- opened
Preferences
and deleted thepayment_id
section; saved changes - renamed the folder to
Brave-Browser-Beta
- relaunched Brave using
1.32.81
- viewed an ad and claimed UGP grants
Confirmed:
- newly created wallet ID is displayed after upgrade
- previous (corrupted) wallet ID is displayed
- there's an event in the log recording that wallet corruption was detected
- confirmed ad rewards are reconciled and unblinded tokens are redeemed successfully after regenerating a new wallet ID
1.31.x
example | example | example | example |
---|---|---|---|
[4183:259:1026/083732.889549:INFO:ad_rewards.cc(67)] Failed to reconcile ad rewards due to invalid wallet
[4183:259:1026/083732.891089:VERBOSE1:confirmations.cc(115)] Retry failed confirmations in 0 hours, 0 minutes, 1 second at 8:37 AM
[4183:259:1026/083732.891756:INFO:redeem_unblinded_payment_tokens.cc(55)] Failed to redeem unblinded payment tokens due to invalid wallet
[4183:259:1026/083732.891814:VERBOSE1:account.cc(202)] Failed to redeem unblinded payment tokens
1.32.x
example | example | example | example | example | example |
---|---|---|---|---|---|
[6065:259:1026/090912.855540:VERBOSE1:redeem_unblinded_payment_tokens.cc(110)] OnRedeemUnblindedPaymentTokens
[6065:259:1026/090912.855655:VERBOSE6:redeem_unblinded_payment_tokens.cc(112)] URL Response:
URL: https://ads-serve.bravesoftware.com/v1/confirmation/payment/80f0ed4f-0099-472d-8f83-8bc5d8412de4
Response Status Code: 200
Response: {"status":"ok"}
[6065:259:1026/090912.856614:VERBOSE1:account.cc(193)] Successfully redeemed unblinded payment tokens
[6065:259:1026/090912.856936:VERBOSE1:ad_rewards.cc(218)] Reconcile ad rewards
[6065:259:1026/090912.857004:VERBOSE1:ad_rewards.cc(226)] GetPayments
[6065:259:1026/090912.857048:VERBOSE2:ad_rewards.cc(227)] GET /v1/confirmation/payment/{payment_id}
[6065:259:1026/090912.858655:VERBOSE6:ad_rewards.cc(231)] URL Request:
URL: https://ads-serve.bravesoftware.com/v1/confirmation/payment/80f0ed4f-0099-472d-8f83-8bc5d8412de4
Method: kGet
[6065:259:1026/090912.859410:VERBOSE1:redeem_unblinded_payment_tokens.cc(72)] Redeem unblinded payment tokens in 0 hours, 19 minutes, 42 seconds at 9:28 AM
[6065:259:1026/090912.915515:VERBOSE1:ad_rewards.cc(240)] OnGetPayments
[6065:259:1026/090912.915622:VERBOSE6:ad_rewards.cc(242)] URL Response:
URL: https://ads-serve.bravesoftware.com/v1/confirmation/payment/80f0ed4f-0099-472d-8f83-8bc5d8412de4
Response Status Code: 200
Response: [{"month":"2021-10","transactionCount":"6","balance":"0.075"}]
[6065:259:1026/090912.916487:VERBOSE1:ad_rewards.cc(263)] Successfully reconciled ad rewards
Verification passed on
Brave | 1.32.81 Chromium: 95.0.4638.54 (Official Build) beta (64-bit)
-- | --
Revision | d31a821ec901f68d0d34ccdbaea45b4c86ce543e-refs/branch-heads/4638@{#871}
OS | Windows 10 Version 21H1 (Build 19043.1288)
Clean profile
- Clean profile, enable rewards and view some Ads
- Close the brave
- Open Preference file from profile folder and delete the Payment id from it and save the changes
- Relaunch Brave
- View some more ads and claim UGP grants
Confirmed:
- previous (corrupted) wallet ID is displayed
- newly created wallet ID is displayed
- there's an event in the log recording that wallet corruption was detected
- confirmed ad rewards are reconciled and unblinded tokens are redeemed successfully after generating a new wallet id
Example | Example | Example | Example | Example | Example | Example |
---|---|---|---|---|---|---|
- Ads rewards are not reconciled and unblinded payment tokens are not redeemed when the wallet is corrupted
[Oct 26, 2021, 8:24:15.7 PM:ERROR:ad_rewards.cc(67)] Failed to reconcile ad rewards due to invalid wallet
[Oct 26, 2021, 8:24:15.7 PM:ERROR:redeem_unblinded_payment_tokens.cc(55)] Failed to redeem unblinded payment tokens due to invalid wallet
[Oct 26, 2021, 8:24:22.3 PM:ERROR:ledger_impl.cc(579)] Wallet is null
- Confirmed ad rewards are reconciled and unblinded tokens are redeemed successfully after generating a new wallet id
[14368:14876:1026/203051.092:VERBOSE1:redeem_unblinded_payment_tokens.cc(110)] OnRedeemUnblindedPaymentTokens
[14368:14876:1026/203051.093:VERBOSE6:redeem_unblinded_payment_tokens.cc(112)] URL Response:
URL: https://ads-serve.bravesoftware.com/v1/confirmation/payment/06c2b978-75b3-4978-b6e4-cf62fe90f0fd
Response Status Code: 200
Response: {"status":"ok"}
[14368:14876:1026/203051.098:VERBOSE1:account.cc(193)] Successfully redeemed unblinded payment tokens
[14368:14876:1026/203051.102:VERBOSE1:ad_rewards.cc(218)] Reconcile ad rewards
[14368:14876:1026/203051.108:VERBOSE1:ad_rewards.cc(226)] GetPayments
[14368:14876:1026/203051.109:VERBOSE2:ad_rewards.cc(227)] GET /v1/confirmation/payment/{payment_id}
[14368:14876:1026/203051.111:VERBOSE6:ad_rewards.cc(231)] URL Request:
URL: https://ads-serve.bravesoftware.com/v1/confirmation/payment/06c2b978-75b3-4978-b6e4-cf62fe90f0fd
Method: kGet
[14368:14876:1026/203051.112:VERBOSE1:redeem_unblinded_payment_tokens.cc(72)] Redeem unblinded payment tokens in 0 hours, 11 minutes, 44 seconds at 8:42 PM
[14368:14876:1026/203051.491:VERBOSE1:ad_rewards.cc(240)] OnGetPayments
[14368:14876:1026/203051.491:VERBOSE6:ad_rewards.cc(242)] URL Response:
URL: https://ads-serve.bravesoftware.com/v1/confirmation/payment/06c2b978-75b3-4978-b6e4-cf62fe90f0fd
Response Status Code: 200
Response: [{"month":"2021-10","transactionCount":"1","balance":"0.01"}]
[14368:14876:1026/203051.494:VERBOSE1:ad_rewards.cc(263)] Successfully reconciled ad rewards
Upgrade profile
- Install 1.31.x RC version and enable rewards
- View some ads
- Close the browser
- Open Preference file from profile folder and delete the Payment_id from it and save the changes done
- Rename the profile folder to beta (1.32.x)
- Relaunch browser 1.32.x
- View an ad and claim UGP grants
Confirmed:
- newly created wallet ID is displayed after upgrade
- previous (corrupted) wallet ID is displayed
- there's an event in the log recording that wallet corruption was detected
- confirmed ad rewards are reconciled and unblinded tokens are redeemed successfully after generating a new wallet id
1.31.x
Example | Example | Example | Example | Example |
---|---|---|---|---|
- Ads rewards are not reconciled and unblinded payment tokens are not redeemed due to a corrupted wallet
[Oct 26, 2021, 7:09:14.4 PM:ERROR:ad_rewards.cc(73)] Failed to reconcile ad rewards due to invalid wallet
[Oct 26, 2021, 7:09:14.4 PM:ERROR:redeem_unblinded_payment_tokens.cc(62)] Failed to redeem unblinded payment tokens due to invalid wallet
Upgrade to 1.32.x
Example | Example | Example | Example |
---|---|---|---|
- Confirmed ad rewards are reconciled and unblinded tokens are redeemed successfully after generating a new wallet id
[21116:19116:1026/194850.348:VERBOSE1:redeem_unblinded_payment_tokens.cc(110)] OnRedeemUnblindedPaymentTokens
[21116:19116:1026/194850.348:VERBOSE6:redeem_unblinded_payment_tokens.cc(112)] URL Response:
URL: https://ads-serve.bravesoftware.com/v1/confirmation/payment/a3f261be-2c1e-43e6-b9a9-acd1a7642dc0
Response Status Code: 200
Response: {"status":"ok"}
[21116:19116:1026/194850.351:VERBOSE1:account.cc(193)] Successfully redeemed unblinded payment tokens
[21116:19116:1026/194850.353:VERBOSE1:ad_rewards.cc(218)] Reconcile ad rewards
[21116:19116:1026/194850.358:VERBOSE1:ad_rewards.cc(226)] GetPayments
[21116:19116:1026/194850.359:VERBOSE2:ad_rewards.cc(227)] GET /v1/confirmation/payment/{payment_id}
[21116:19116:1026/194850.368:VERBOSE6:ad_rewards.cc(231)] URL Request:
URL: https://ads-serve.bravesoftware.com/v1/confirmation/payment/a3f261be-2c1e-43e6-b9a9-acd1a7642dc0
Method: kGet
[21116:19116:1026/194850.370:VERBOSE1:redeem_unblinded_payment_tokens.cc(72)] Redeem unblinded payment tokens in 0 hours, 18 minutes, 21 seconds at 8:07 PM
[21116:19116:1026/194850.728:VERBOSE1:ad_rewards.cc(240)] OnGetPayments
[21116:19116:1026/194850.728:VERBOSE6:ad_rewards.cc(242)] URL Response:
URL: https://ads-serve.bravesoftware.com/v1/confirmation/payment/a3f261be-2c1e-43e6-b9a9-acd1a7642dc0
Response Status Code: 200
Response: [{"month":"2021-10","transactionCount":"3","balance":"0.045"}]
[21116:19116:1026/194850.730:VERBOSE1:ad_rewards.cc(263)] Successfully reconciled ad rewards
Brave | 1.32.88 Chromium: 95.0.4638.69 (Official Build) beta (64-bit)
-- | --
Revision | 6a1600ed572fedecd573b6c2b90a22fe6392a410-refs/branch-heads/4638@{#984}
OS | Windows 10 Version 21H1 (Build 19043.1288)
Case 1: corrupted recovery_seed
- Clean profile, enable rewards and view some Ads
- Close the brave
- Open Preference file from profile folder and add junk chars to
recovery_seed
section and save the changes - Relaunch Brave
- View some more ads and claim UGP grants
Confirmed:
- previous (corrupted) wallet ID is displayed
- newly created wallet ID is displayed
- there's an event in the log recording that wallet corruption was detected
- confirmed ad rewards are reconciled and unblinded tokens are redeemed successfully after generating a new wallet id
Example | Example | Example | Example | Example | Example |
---|---|---|---|---|---|
[16524:13520:1103/130024.256:VERBOSE1:redeem_unblinded_payment_tokens.cc(80)] RedeemUnblindedPaymentTokens
[16524:13520:1103/130024.257:VERBOSE2:redeem_unblinded_payment_tokens.cc(89)] PUT /v1/confirmation/payment/{payment_id}
[16524:13520:1103/130024.263:VERBOSE6:redeem_unblinded_payment_tokens.cc(99)] URL Request:
URL: https://ads-serve.bravesoftware.com/v1/confirmation/payment/48a71aa8-37f6-4bc8-b366-77e152b624b0
Content: {"payload":"{\"paymentId\":\"48a71aa8-37f6-4bc8-b366-77e152b624b0\"}","paymentCredentials":[{"credential":{"signature":"XdNoIVqBKDMIczer8qfoyRYO7wGiK7v1eoAbOjd29qGD0d1mXuZzagnu1Y5IodxMgBOGyOsWI5L54cUrpNxt5g==","t":"+J39/aUYzjLPozVT/CEhdgZ/eWUs5cqb0HtDcbVz/2FF+4O49mLIIzT7wbjPDgnHMQBiFisFLUcEM3V/dHSXjQ=="},"publicKey":"Hrgq+Vvq6nFYxkEJpGAyU6D26mdvDXcXcz/fM2ZLfHg="},{"credential":{"signature":"AmViky5YDRbTYz2jIxEy5dnxVayDABp6kuWTt+ndQFORRCLV43S1bb7UBp1sy+6RhEk8BAGm2AY9VpiVWZNmoA==","t":"4wlHAboqyNujlrlnabx+YLhtfGcwdSrccw6ox+DKgMR52A2L64G6wGBgInPe6oq6hjYkpOAURRkBxW86UN9+3A=="},"publicKey":"6JgWYjDtDWAzMSfXFLNEbP5h2q+hZabhX9/DmKkl5Rg="}]}
Content Type: application/json
Method: kPut
[16524:13520:1103/130025.559:VERBOSE1:redeem_unblinded_payment_tokens.cc(110)] OnRedeemUnblindedPaymentTokens
[16524:13520:1103/130025.559:VERBOSE6:redeem_unblinded_payment_tokens.cc(112)] URL Response:
URL: https://ads-serve.bravesoftware.com/v1/confirmation/payment/48a71aa8-37f6-4bc8-b366-77e152b624b0
Response Status Code: 200
Response: {"status":"ok"}
[16524:13520:1103/130025.563:VERBOSE1:account.cc(193)] Successfully redeemed unblinded payment tokens
[16524:13520:1103/130203.207:VERBOSE1:ad_rewards.cc(218)] Reconcile ad rewards
[16524:13520:1103/130203.214:VERBOSE1:ad_rewards.cc(226)] GetPayments
[16524:13520:1103/130203.216:VERBOSE2:ad_rewards.cc(227)] GET /v1/confirmation/payment/{payment_id}
[16524:13520:1103/130203.223:VERBOSE6:ad_rewards.cc(231)] URL Request:
URL: https://ads-serve.bravesoftware.com/v1/confirmation/payment/48a71aa8-37f6-4bc8-b366-77e152b624b0
Method: kGet
[16524:13520:1103/130204.390:VERBOSE1:ad_rewards.cc(240)] OnGetPayments
[16524:13520:1103/130204.390:VERBOSE6:ad_rewards.cc(242)] URL Response:
URL: https://ads-serve.bravesoftware.com/v1/confirmation/payment/48a71aa8-37f6-4bc8-b366-77e152b624b0
Response Status Code: 200
Response: [{"month":"2021-11","transactionCount":"1","balance":"0.025"}]
[16524:13520:1103/130204.394:VERBOSE1:ad_rewards.cc(263)] Successfully reconciled ad rewards
Case 2: corrupted wallets_brave
- Clean profile, enable rewards and view some Ads
- Close the brave
- Open Preference file from profile folder and add junk chars to
wallets.brave
section and save the changes - Relaunch Brave
- View some more ads and claim UGP grants
Confirmed:
- previous (corrupted) wallet ID is displayed
- newly created wallet ID is displayed
- there's an event in the log recording that wallet corruption was detected
- confirmed ad rewards are reconciled and unblinded tokens are redeemed successfully after generating a new wallet id
Example | Example | Example | Example |
---|---|---|---|
Verified PASSED
on
Brave | 1.32.83 Chromium: 95.0.4638.54 (Official Build) beta (64-bit) |
---|---|
Revision | d31a821ec901f68d0d34ccdbaea45b4c86ce543e-refs/branch-heads/4638@{#871} |
OS | Linux |
Clean profile
- Clean profile, enable rewards and view some Ads
- Close the browser
- Open Preference file from profile folder and delete the Payment id from it and save the changes
- Relaunch Brave
- View some more ads and claim UGP grants
Confirmed:
- previous (corrupted) wallet ID is displayed
- newly created wallet ID is displayed
- there's an event in the log recording that wallet corruption was detected
- confirmed ad rewards are reconciled and unblinded tokens are redeemed successfully after generating a new wallet id
Example | Example | Example | Example | Example | Example | Example | Example |
---|---|---|---|---|---|---|---|
- Ads rewards are not reconciled and unblinded payment tokens are not redeemed when the wallet is corrupted
[52088:52088:1027/145851.418405:INFO:ad_rewards.cc(67)] Failed to reconcile ad rewards due to invalid wallet
[52088:52088:1027/145851.419748:VERBOSE1:confirmations.cc(115)] Retry failed confirmations in 0 hours, 10 minutes, 26 seconds at 3:09 PM
[52088:52088:1027/145851.420241:INFO:redeem_unblinded_payment_tokens.cc(55)] Failed to redeem unblinded payment tokens due to invalid wallet
- Confirmed ad rewards are reconciled and unblinded tokens are redeemed successfully after generating a new wallet id
[51656:51656:1027/145543.730176:VERBOSE1:ad_rewards.cc(240)] OnGetPayments
[51656:51656:1027/145543.730274:VERBOSE6:ad_rewards.cc(242)] URL Response:
URL: https://ads-serve.bravesoftware.com/v1/confirmation/payment/3eaa736f-a656-43d6-9f5a-74980f82dbd5
Response Status Code: 200
Response: [{"balance":"0","month":"2021-10","transactionCount":"0"}]
[51656:51656:1027/145543.730570:VERBOSE1:ad_rewards.cc(263)] Successfully reconciled ad rewards
Upgrade profile
- Install 1.31.x RC version and enable rewards
- View some ads
- Close the browser
- Open Preference file from profile folder and delete the Payment_id from it and save the changes done
- Rename the profile folder to beta (1.32.x)
- Relaunch browser 1.32.x
- View an ad and claim UGP grants
Confirmed:
- newly created wallet ID is displayed after upgrade
- previous (corrupted) wallet ID is displayed
- there's an event in the log recording that wallet corruption was detected
- confirmed ad rewards are reconciled and unblinded tokens are redeemed successfully after generating a new wallet id
1.31.x
Example | Example | Example | Example | Example |
---|---|---|---|---|
- Ads rewards are not reconciled and unblinded payment tokens are not redeemed due to a corrupted wallet
[55728:55728:1027/155108.405735:INFO:ad_rewards.cc(67)] Failed to reconcile ad rewards due to invalid wallet
[54767:54767:1027/154604.407534:INFO:redeem_unblinded_payment_tokens.cc(62)] Failed to redeem unblinded payment tokens due to invalid wallet
Upgrade to 1.32.x
Example | Example | Example | Example |
---|---|---|---|
- Confirmed ad rewards are reconciled and unblinded tokens are redeemed successfully after generating a new wallet id
[54270:54270:1027/153812.297617:VERBOSE1:ad_rewards.cc(249)] OnGetPayments
[54270:54270:1027/153812.297743:VERBOSE6:ad_rewards.cc(251)] URL Response:
URL: https://ads-serve.bravesoftware.com/v1/confirmation/payment/ddf18b98-9ce0-435c-b6b4-d3ad7386094b
Response Status Code: 200
Response: [{"balance":"0","month":"2021-10","transactionCount":"0"}]
[54270:54270:1027/153812.297792:VERBOSE1:ad_rewards.cc(272)] Successfully reconciled ad rewards
stephendonner
added
QA/In-Progress
Indicates that QA is currently in progress for that particular issue
QA Pass-Linux
and removed
QA/In-Progress
Indicates that QA is currently in progress for that particular issue
labels
Oct 27, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Currently, if the Rewards wallet info stored in
Preferences
becomes unreadable (most commonly due to a pre-1.31 version of the browser losing access toOSCrypt
keys) a new wallet is not created for the user.When the user is performing an action that requires a payment ID and the existing data cannot be read, we should:
rewards-internals
page.The text was updated successfully, but these errors were encountered: