qtumproject / qips

Qtum Improvement Proposals
9 stars 2 forks source link

QIP-23: Wallet Recovery Options #23

Open JB395 opened 5 years ago

JB395 commented 5 years ago

Two useful wallet recovery techniques are:

  1. deleting the local copy of the blockchain and restarting the wallet to resync the entire blockchain – this cures blockchain syncing problems, minGW errors and deep chain reorganization issues.
  2. using zapwallettxes=2 to recover missing transactions and staking problems with orphan blocks or chain splits.

These techniques are difficult for Qtum-Qt users who may have no command line experience, and who may have trouble finding the Qtum data directory (the Windows AppData folder is hidden by default).

For Qtum-Qt, radio buttons could be added to the Options Wallet page, for example a new section:


Recovery (requires manual wallet restart)

:white_medium_square: delete blockchain..........delete the local copy of the blockchain, resync the entire blockchain :white_medium_square: zapwallettxes=2............recover transactions without metadata


Users could select one of these recovery buttons, and would then have to manually exit and restart the wallet. For qtumd and the configuration file the startup command could be added -deleteblockchain

The delete blockchain option should work for the default or custom data directories.

JB395 commented 4 years ago

Implemented in v0.18.1 released on Septeber 18, 2019:

Wallet Restore Options 0 18 1