Skip to content
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

similar to Rescan, need a way to Recreate a wallet for recovery #1438

Closed
chappjc opened this issue Jan 21, 2022 · 1 comment · Fixed by #1507
Closed

similar to Rescan, need a way to Recreate a wallet for recovery #1438

chappjc opened this issue Jan 21, 2022 · 1 comment · Fixed by #1507
Labels
full stack A complete solution requires work on UI, core, and wallet backend(s)

Comments

@chappjc
Copy link
Member

chappjc commented Jan 21, 2022

There are a myriad of ways the native btcwallet and/or it's chain service files may become corrupted, necessitating one or more of the manual recovery steps described on https://github.com/decred/dcrdex/wiki/Native-BTC-Wallet-Recovery-and-Rescanning

I was able to corrupt neutrino and prevent it from ever starting again by killing dexc hard a few times. In my case neutrino.NewChainService was returning an EOF error, which through debugging I traced from newBlockManager > cfg.BlockHeaders.ChainTip() > (*blockHeaderStore).readHeader > h.readRaw(seekDistance). Almost none of the errors from the neutrino constructors supplement the error with any details about what caused the error, so this is nearly impossible for an end user to debug even with the help of a developer. In such cases, you just need to toast the neutrino data files (and wallet.db) with dexc stopped, start again, and resubmit the wallet config to force it to reinitialize. We should smooth out this "recreate" process.

@chappjc chappjc added this to the 0.4.1 milestone Jan 21, 2022
@chappjc chappjc removed this from the 0.4.1 milestone Feb 7, 2022
@martonp
Copy link
Contributor

martonp commented Feb 21, 2022

I'll do this one.

@buck54321 buck54321 added client full stack A complete solution requires work on UI, core, and wallet backend(s) labels Apr 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
full stack A complete solution requires work on UI, core, and wallet backend(s)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants