2

I am running full bitcoin node locally. Currently, the size of the blockchain is around 70 GB. Blockchain size

Further, I stored all the blocks in a text file in json format. It turned out that the size of this text file is around 10 GB. I am wondering what is the rest of the 60 GB used for?

  • Can guarantee you that the JSON files do not contain all the information. How did you create those JSON files? – Jannes Mar 11 '16 at 18:38
  • please see [link]github.com/tariq786/datafying_bitcoin/blob/master/… . This is how i generate blocks in json format. Essentially using JSON RPC with bitcoind – user2065276 Mar 12 '16 at 15:16
  • I only glanced at the code for that JSON extractor tool, but I'm going to bet that it doesn't include any signature information. Not sure what else will be missing. – Jannes Mar 12 '16 at 19:28
1

Your code stores only the results of the getblock call. This returns the block headers and the tx hashes of the block, but NOT the actual tx's themselves.

Each transaction hash is only 8 bytes, an actual transaction is roughly 500 bytes, so you're missing about 500 bytes per tx in each block.

There have been about 116 million transactions in the history of bitcoin, so 500 * 116 million ~ 60 billion bytes or about 60 GB that you're missing.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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