<ul>
<li><code>bitcoind --version</code> is asking the <code>bitcoind</code> binary what its version is</li>
<li><code>bitcoin-cli getnetworkinfo</code> asks the currently <em>running</em> <code>bitcoind</code> what its version is</li>
</ul>
<p>So this means that you at some point had a 0.18.0 <code>bitcoind</code>, started it, then installed a 0.20.0 one, but the 0.18.0 one is still running.</p>

CC BY-SA 4.0
2020-10-12T19:50:57.797Z
2020-10-12T19:50:57.797Z
Pieter Wuille
<p>I tried to upgrade bitcoin core from 0.18.0 to 0.20.0.</p>
<p>When I ask for the version through bitcoind <code>bitcoind --version</code> it prints <code>Bitcoin Core version v0.20.0</code> but if I ask for the version through bitcoin-cli <code>bitcoin-cli getnetworkinfo</code> it prints <code>&quot;subversion&quot;: &quot;/Satoshi:0.18.0/&quot;</code></p>
<p>How is this possible that this is not the same?</p>

<bitcoin-core><bitcoind><bitcoin-cli>
Difference between bitcoin-cli getnetworkinfo version and bitcoind --version
Thomas Kayser
# Difference between bitcoin-cli getnetworkinfo version and bitcoind --version

(Asked by: username_0 on 2020-10-12)

I tried to upgrade bitcoin core from 0.18.0 to 0.20.0.

When I ask for the version through bitcoind `bitcoind --version` it prints `Bitcoin Core version v0.20.0` but if I ask for the version through bitcoin-cli `bitcoin-cli getnetworkinfo` it prints `"subversion": "/Satoshi:0.18.0/"`

How is this possible that this is not the same?

**Tags:** bitcoin-core, bitcoind, bitcoin-cli


---

## 1 answers

### Answer by username_1 on 2020-10-12. Score: 3

* `bitcoind --version` is asking the `bitcoind` binary what its version is
* `bitcoin-cli getnetworkinfo` asks the currently *running* `bitcoind` what its version is

So this means that you at some point had a 0.18.0 `bitcoind`, started it, then installed a 0.20.0 one, but the 0.18.0 one is still running.


---

