user40279: 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?

user3697: 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:

Copy the wallet.dat file (wallet.<date>.bak)
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.

40279: <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>
 3697: <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>
