If you have the wallet.dat
file on an external disk, then do the following:
-
Make sure ZecWallet is shut down.
-
Copy the
wallet.dat
file from the external disk to the node’s data directory (the directory wherezcash.conf
is). Don’t move the file, keep the backup on the external disk. In the case of ZecWallet on Windows, the data directory on recent Windows versions would usually be<Windows drive>:\Users\<username>\AppData\Roaming\Zcash
. If there’s an existingwallet.dat
in the way, rename that one towallet.old
first. -
In the same directory, rename
zcash.conf
tozcash.conf.txt
(accepting the prompt that this may make the file unusable, if you’re using the GUI). Double-click this file to edit it in notepad. Add the following lines at the end:reindex=1
rescan=1and save the file.
-
Rename
zcash.conf.txt
back tozcash.conf
. -
Run ZecWallet and wait for it to fully resync. This may take several days depending on the speed of your network connection.
-
After it has synced, shut down ZecWallet and make sure to reedit
zcash.conf
to remove thereindex=1
andresync=1
lines before starting ZecWallet again.
(@adityapk00, is there a simpler way to pass the reindex
and resync
options to zcashd?)