Rewrite Wallet Recovery section

The `-salvagewallet` option doesn't work well in practice, so don't mention it.
This commit is contained in:
Daira Hopwood 2020-08-25 15:47:21 +01:00 committed by GitHub
parent 043d08473c
commit e783a1bf72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 11 deletions

View File

@ -126,17 +126,9 @@ In the blockchain, transactions can be invalidated by rollbacks; wallet code wil
Wallet Recovery
^^^^^^^^^^^^^^^
The wallet database file may become corrupted. Zcashd supports a command line option to try to recover from this situation (``-salvagewallet``). When this flag is on, function ``Recover()`` will run.
The recovery procedure is as follows:
* Move wallet file to wallet.timestamp.bak
* Call ``Salvage()`` with fAggressive=true to
* Get as much data as possible.
* Rewrite salvaged data to fresh wallet file
* Set ``-rescan`` so any missing transactions will be found.
The ``Salvage()`` call is BDB specific, other database implementations may provide similar functionality.
The wallet database file may become corrupted. There are utilities in the `zcutil/bin`
directory that may help with recovering it if this happens. Please ask for help on the
Zcash forum or Community Discord.
Wallet Encryption
^^^^^^^^^^^^^^^^^