美文网首页
bitcoin rpc args: reindex 与 rein

bitcoin rpc args: reindex 与 rein

作者: 已不再更新_转移到qiita | 来源:发表于2017-11-15 19:10 被阅读233次

    -reindex:

    wipes the chainstate (the UTXO set)
    wipes the block index (the database with information about which block is where on disk)
    rebuilds the block index (by going over all blk*.dat files, and finding things in it that look like blocks)
    rebuilds the chainstate (redoing all validation for blocks) based on the blocks now in the index

    -reindex-chainstate:

    wipes the chainstate
    rebuilds the chainstate using the blocks in the index you had before

    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.


    参考:

    https://bitcoin.stackexchange.com/questions/60709/when-should-i-use-reindex-chainstate-and-when-reindex/60711

    相关文章

      网友评论

          本文标题:bitcoin rpc args: reindex 与 rein

          本文链接:https://www.haomeiwen.com/subject/jbphvxtx.html