0

When you download the blockchain, do you download the chainstate too or it has to be generated by your own machine (it says that theoretically can be rebuilt from the block data but it is time consuming)? If it is downloaded how do we verify the integrity of the chainstate database?

1 Answer 1

0

The chainstate is generated as a side effect of validating the blockchain.

2
  • So if I understand you correctly, there is no need to scan through the whole GBs worth of blockchain to generate chainstate for the first time setting up my machine, instead it will be populated along with the growth of blockchain?
    – Consy
    Commented Apr 9, 2017 at 23:52
  • 1
    When you initially synchronize with the network, you download all of the historical blocks, and validate those. As a side effect, the chainstate is generated. After validating you can throw away the blocks (pruning mode). Commented Apr 10, 2017 at 4:53

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.