<p>The original Bitcoin code base definitely didn't support this.</p>
<p>Currently it's possible to effectively keep the entire UTXO set in memory in Bitcoin Core if you set the database cache large enough (over 6 GB, last I checked). The blockchain itself is always stored on disk.</p>

CC BY-SA 4.0
2020-12-19T00:38:46.227Z
2020-12-19T01:18:12.743Z
2020-12-19T01:18:12.743Z
Pieter Wuille
<p>Putting aside pool mining, does the Bitcoin mining program keep the entire blockchain in memory? Including transactions?</p>
<p>I've been reading through the original Bitcoin code and it looks like the entire chain is kept in memory. Of course that code is over 10 years old, so I'm sure it's changed quite a bit, but I'm still curious.</p>

<source-code><memory><implementation>
Is the entire blockchain kept in memory?
Addy
# Is the entire blockchain kept in memory?

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

Putting aside pool mining, does the Bitcoin mining program keep the entire blockchain in memory? Including transactions?

I've been reading through the original Bitcoin code and it looks like the entire chain is kept in memory. Of course that code is over 10 years old, so I'm sure it's changed quite a bit, but I'm still curious.

**Tags:** source-code, memory, implementation


---

## 1 answers

### Answer by username_1 on 2020-12-19. Score: 4

The original Bitcoin code base definitely didn't support this.

Currently it's possible to effectively keep the entire UTXO set in memory in Bitcoin Core if you set the database cache large enough (over 6 GB, last I checked). The blockchain itself is always stored on disk.


---

