-
Notifications
You must be signed in to change notification settings - Fork 974
When detecting a corrupted seed #13424
Comments
@bradleyrichter can you please prepare text for this one |
@mrose17 I think a short description of the use case would be helpful for writing the associated elements. For example: Summary: The only current known cause of this blank page occurrence is when we run into a corrupted seed upon fetching the user's ledger data. The only known fix for this is to ask the user to recover their Brave Wallet. If the user has not backed up their wallet, we might want to apologize. |
@bradleyrichter - the use case is very simple. the browser can easily detect if the seed is corrupted. in most cases, the reason is due to a bug in the recovery file generation code (that was fixed several revisions back). when the seed is corrupted, it is not possible to make a contribution. the user needs to fix this. @LaurenWags - can you put together an entry for the FAQ at https://brave.com/faq-payments/ that explains to the user "how to recover" and then ask catherine to review it and then @jonathansampson to update the site. when that happens, we can put a link to the FAQ on the popup that blocks out the preferences panel. you may also want to suggest text in this issue as to what the message on the popup should say with the link, etc. thanks! |
Yes @mrose17 this is on my list after the b-l and Android releases this week. |
thank you! |
Awesome- thanks for capturing this, @mrose17 😄 I think this will be a huge help for troubleshooting |
@bradleyrichter do you need anything else from me or @mrose17 ? |
ok, the thing I was missing here was something like "When Brave Payments loads, it checks the brave wallet for contents. If the wallet is corrupted, it can not be loaded and the user can not perform any transactions. A backup to their wallet needs to be recovered by them, manually. (we can not automate this as we don't store the wallet backup code or it's location for obvious security reasons). If they do not have a backup, they can seek help through a link that takes them to the Brave.com Payments FAQ page. Here is the recommended solution: Text: Body: Link text: View the Brave Payments FAQ… Button Text: Recover your Brave Wallet Button action: |
adding this issue just for the reference #12672 |
First draft of FAQ entry sent to Catherine for feedback. |
@mrose17 FAQ text was reviewed by Catherine and OK-ed. I have sent the text to @jonathansampson |
thank you @LaurenWags |
Resolves brave#13424 Auditors: Test Plan:
Resolves brave#13424 Auditors: Test Plan:
Resolves brave#13424 Auditors: Test Plan:
Resolves brave#13424 Auditors: Test Plan:
Resolves brave#13424 Auditors: Test Plan:
Resolves brave#13424 Auditors: Test Plan:
Resolves brave#13424 Auditors: Test Plan:
Resolves brave#13424 Auditors: Test Plan:
Logged #13582 |
When I removed one of the seeds, a crash was recorded in terminal, there was no recovery dialog and browser became unstable. Tested on Win7 v0.22.7. It reproduces(fails) when there is uneven number of seeds and passes when there is even. Also reproduced on Mac v0.22.7 by @LaurenWags . Crash:
ledger-state.json
|
I notice this error as well, so I added check in this PR #13607. There will still be an error, but browser will work. If you found any other issues please create another issue. |
Verified on macOS 10.12.6 x64 using the following build:
|
Re-opening the issue. When you corrupt the seed by removing a few entries, sometimes the warning overlay never appears, sometimes it does. It's really inconsistent. @LaurenWags ran into the same issue while we were attempting to debug. The main case that's the most worrisome is when the seed is corrupted and appears as follows:
The above is usually the case that happens with users that experience this issue. I've ran into this issue once before about two months ago, and my seed appeared as STR:
Notice that the corruption overlay isn't being displayed even though the seed in
Which state is correct? The seed has been almost removed yet the overlay is not appearing and the recovery file is still being listed.
|
Found the problem: |
After review, I don't think this is a problem really... but perhaps we should create another issue (for fixing the seed value in Because the seed is intact in the state, you're able to continue backing up your seed. The ledger should also continue to reconcile just fine. WDYT, @NejcZdovc? |
Ok we are going in a wrong direction with this one. So you need to have "valid broken" seed to actually trigger this overlay. If you change your seed to invalid one we will not save it into the state. So what happens is that on the initial read we try to parse seed from Based on #12672 broken seed that users were seeing is
Let's use this valid broken seed for testing all seed related issues. Thing is that we would never save invalid broken seed into ledger-state. I will fix one potential race condition in the meantime |
Verified on
|
Test Plan:
#13576
#13551
If we detect a corrupted seed (when displaying the preferences panel), display a message with a link to an FAQ entry, that explains how to use the recovery file, and, failing that, how to contact to support.
@LaurenWags - please write the FAQ entry, ask catherine to review it, and @jonathansampson to update the website and give you the URL.
The text was updated successfully, but these errors were encountered: