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
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?– ConsyApr 9, 2017 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). Apr 10, 2017 at 4:53