7

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 '20 at 14:17
  • @MCCCS do you know of any block explorer, etc that publishes charts for blockchain size in MB? – pinhead Jun 16 '20 at 14:18
  • blockchain.com/en/charts/blocks-size but not txindex – MCCCS Jun 16 '20 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 '20 at 14:43
8

The total extra size is around 7GB as of November 2016. 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.


Updated values from comments:

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.

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.