9

For example for a 1 MB block, does the extra Tx index database take up another 100 kB on average?

And a follow-up: once my node has completed -reindex after setting txindex=1 can I COPY the blockchain AND the TX index database together to other nodes? I know the blockchain can be copied but I'm not sure if the new node needs to reindex the blockchain itself or if the index database copies over as well.

4
  • 2
    I’m voting to close this question because the answer becomes out-of-date very quickly to be useful to others in the future.
    – MCCCS
    Jun 16, 2020 at 14:17
  • @MCCCS do you know of any block explorer, etc that publishes charts for blockchain size in MB?
    – pinhead
    Jun 16, 2020 at 14:18
  • blockchain.com/en/charts/blocks-size but not txindex
    – MCCCS
    Jun 16, 2020 at 14:23
  • 2
    Maybe a new best answer could describe the ratio of the index directory to the blockchain size as described by that chart. This will be a common enough question to maintain some kind of answer here. For example the indexes/txindex directory seems to be about 10% the size of the blocks directory.
    – pinhead
    Jun 16, 2020 at 14:43

3 Answers 3

9

The total extra size is around 27GB as of June 2020. You can check by looking at the size of the $DATADIR/blocks/index directory.

If you copy that directory, you'll copy the index with it.


Historic data:

Date GB Reference
2016-11-18 7 original answer
2017-05-08 11 ens
2019-07-16 21 Vasil Toshkov
2020-06-14 27 Anonymous
0
1

I just reindexed after setting txindex=1. My data directory increased in size about 3GB, but it seems like it might be saving data in another location since moving the data directory to other nodes is asking me to reindex.

0

Given the table above from Pieter's accepted answer and considering the historic blockchain size at the same dates, index data is around 10% the size of the blockchain.

Your Answer

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

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