1

On a Mac which Bitcoin Core updated a few minutes ago, the the Blocks folder contains 409.55 GB and the Chainstate folder contains 4.57 GB. But...

https://www.blockchain.com/charts/blocks-size shows, as of yesterday, about 360 GB excluding database indexes.

https://ycharts.com/indicators/bitcoin_blockchain_size shows, as of today, about 360 GB.

https://www.statista.com/statistics/647523/worldwide-bitcoin-blockchain-size/ shows, as of Aug. 15 (a week ago) about 351 GB.

The Mac's Blocks folder contains 5,454 files; the Chainstate folder, 2,226 files. The size difference is about 414 - 360 = 54 GB, or about 7.24 MB difference per file (using 1,024 MB per GB). Does that amount of file overhead seem reasonable and thus possibly the explanation?

1
  • Gigabytes can be base 8 or base 10 depending who is displaying them.
    – Claris
    Commented Aug 22, 2021 at 19:15

1 Answer 1

4

The blocks/ subdirectory in the Bitcoin Core datadir contains more than just blocks. For every processed block (which are stored in blk?????.dat files), it also stores "undo data" (stored in rev?????.dat files). These files contain the information necessary to quickly revert the effect of a block if it is ever discovered that it is not part of the best chain anymore.

I suspect that if you just count the blk?????.dat files, you'll end up with a size much closer to the expected blockchain size.

1
  • 2
    The rev* files contain roughly 49 GB. That's it! (So the "undo data" adds about 14% to the blocks storage requirement.)
    – brec
    Commented Aug 22, 2021 at 19:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.