<p>zcoin seems to be a fork of Bitcoin Core.</p>

<p>Bitcoin Core's <code>-salvagewallet</code> does carefully try to recover a broken wallet database (wallet.dat file).</p>

<p>What it does is:</p>

<ol>
<li>Copy the wallet.dat file (<code>wallet.&lt;date&gt;.bak</code>)</li>
<li>Tries to recover only the private keys</li>
</ol>

<p>Make sure you check your <code>debug.log</code> after <code>-salvagewallet</code> wallet operation.
Look for lines starting with "<code>Salvage</code>" to get more information.</p>

CC BY-SA 3.0
2017-03-27T08:40:13.923Z
2017-03-27T08:40:13.923Z
Jonas Schnelli
<p>What can I expect using the <code>salvagewallet</code> command?
What is it actually doing?</p>

<p>I am asking specifically about the zcoin fork, if that matters.
How can this help with corrupted wallet?
How can Wallets become corrupted in the first place?</p>

<wallet.dat><lost-wallet>
How does salvagewallet work?
gkucmierz
# How does salvagewallet work?

(Asked by: username_0 on 2017-03-26)

What can I expect using the `salvagewallet` command?
What is it actually doing?

I am asking specifically about the zcoin fork, if that matters.
How can this help with corrupted wallet?
How can Wallets become corrupted in the first place?

**Tags:** wallet.dat, lost-wallet


---

## 1 answers

### Answer by username_1 on 2017-03-27. Score: 3

zcoin seems to be a fork of Bitcoin Core.

Bitcoin Core's `-salvagewallet` does carefully try to recover a broken wallet database (wallet.dat file).

What it does is:

1. Copy the wallet.dat file (`wallet.<date>.bak`)
2. Tries to recover only the private keys

Make sure you check your `debug.log` after `-salvagewallet` wallet operation.
Look for lines starting with "`Salvage`" to get more information.


---

