<p>The latest wallet.dat version is 0.6.0; wallet.dat didn't change with the 0.7 releases.</p>

<p>Wallet.dat version 0.4.0 introduced the wallet encryption feature.</p>

<p>Wallet.dat version 0.6.0 introduced 'compressed public keys', which make transactions you send smaller. Right now, that is the only reason you might want to run -upgradewallet, although even if you upgrade, you won't start using compressed public keys until you use up the 100 uncompressed keys in the wallet's keypool. You can force bitcoind to use up the old keys by running the 'getnewaddress' RPC command repeatedly.</p>

<p>Note that when you encrypt a previously unencrypted wallet bitcoind/Bitcoin-Qt will automatically upgrade to the latest wallet.dat version, because it has to re-write the entire wallet.dat file anyway.</p>

CC BY-SA 3.0
2012-11-25T01:51:52.037Z
2012-11-25T01:51:52.037Z
gavinandresen
<pre><code>bitcoind -help
</code></pre>

<p>displays</p>

<pre><code>-upgradewallet         Upgrade wallet to latest format
</code></pre>

<p>I have noticed that my wallet format is a few behind bitcoind's version number. Does this mean it is an old format? If so, why should I upgrade it?</p>

<bitcoind><wallet.dat>
What is the benefit of upgrading the wallet file?
smickles
# What is the benefit of upgrading the wallet file?

(Asked by: username_0 on 2012-11-24)

```
bitcoind -help

```

displays

```
-upgradewallet         Upgrade wallet to latest format

```

I have noticed that my wallet format is a few behind bitcoind's version number. Does this mean it is an old format? If so, why should I upgrade it?

**Tags:** bitcoind, wallet.dat


---

## 1 answers

### Answer by username_1 on 2012-11-25. Score: 5 | Accepted answer

The latest wallet.dat version is 0.6.0; wallet.dat didn't change with the 0.7 releases.

Wallet.dat version 0.4.0 introduced the wallet encryption feature.

Wallet.dat version 0.6.0 introduced 'compressed public keys', which make transactions you send smaller. Right now, that is the only reason you might want to run -upgradewallet, although even if you upgrade, you won't start using compressed public keys until you use up the 100 uncompressed keys in the wallet's keypool. You can force bitcoind to use up the old keys by running the 'getnewaddress' RPC command repeatedly.

Note that when you encrypt a previously unencrypted wallet bitcoind/Bitcoin-Qt will automatically upgrade to the latest wallet.dat version, because it has to re-write the entire wallet.dat file anyway.


---

