mirror of https://github.com/zcash/zips.git
Rewrite Wallet Recovery section
The `-salvagewallet` option doesn't work well in practice, so don't mention it.
This commit is contained in:
parent
043d08473c
commit
e783a1bf72
14
zip-0400.rst
14
zip-0400.rst
|
@ -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
|
||||
^^^^^^^^^^^^^^^^^
|
||||
|
|
Loading…
Reference in New Issue