What is the difference between the options -reindex
and -reindex-chainstate
?
Is one of the options faster?
When should each option be used?
-reindex
:
-reindex-chainstate
:
The latter should be strictly faster, as it does not need to rebuild the block index first. Perhaps the progress bar during reindex confuses you: that progress is only for the rebuilding of the index. The recreation of the chainstate happens after that rebuild is completed.
You should use -reindex
only when you were running in pruning mode, or if you suspect the blocks on disk are actually corrupted. Otherwise, when you only suspect corruption of the chainstate (which is far more likely), use -reindex-chainstate
.
UpdateTip
messages that showed the block height. For example: height=201202
. Indeed the progress goes faster when the node already has the blk*.dat files than having to re-download the blocks
Fatal LevelDB error: IO error: /root/.bitcoin/chainstate/000184.ldb: Bad message
Commented
Sep 28, 2021 at 18:26
-reindex
and -reindex-chainstate
throw away all chainstate/*.ldb files and rebuilds them. If you're seeing this error after a -reindex
, most likely you have a hardware problem.
Commented
Sep 28, 2021 at 18:27
if you using reindex-chainstate is more faster . also i have collection script to monitor block status block monitor example script
you can ruuning with crontab and see how many block have been sync and compare with mainnet block excplorer.