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?

0

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

  • 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 Apr 9 '17 at 23:52
  • 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). – Pieter Wuille Apr 10 '17 at 4:53

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.