原始文献 / 论坛帖 / Checking the block chain on load

Checking the block chain on load

Bitcointalk · 2010-08-16 20:07:46 UTC

AuthorSatoshi Nakamoto
TitleChecking the block chain on load
Date2010-08-16 20:07:46 UTC
ForumBitcointalk · 原文

SVN rev 139 在加载后对区块链做一次基本检查。

有了这个,我们当时就不需要删除 blk*.dat 了,它会自动重组回分叉点。当时没时间仔细实现这个。

它可能比我们希望的慢,因为要加载所有块。如果太慢,我们可以让它只回溯到某个块号。

英文原文

SVN rev 139 does a basic check of the block chain after loading.

With this we wouldn't have needed to delete blk*.dat, it would have automatically done a reorg back to the fork.  There wasn't time to do a careful implementation of this at the time.

It might take longer than we want, since it has to load all the blocks.  If it's too slow, we could have it only go back to a certain block number.