中本聪原话中本聪原帖 ↗也许可以在检查之后主动调用 AddToBlockIndex 或 Reorganize,但那需要更细致的推敲。我大概应该把 AddToBlockIndex 里设置新的最佳区块的那部分代码拆出来。我最后很可能用那个做法,而非下面的代码。
It would probably be possible to initiate an AddToBlockIndex or Reorganize after the check, but it would require a lot more careful attention. I probably should break out part of AddToBlockIndex that sets the new best block. I'll probably end up doing that instead of the code below.
这就是我最后在 SVN rev 139 里做的。
This is what I ended up doing in SVN rev 139.
我没有删坏链,而是给 ConnectBlock 加了一个额外的 CheckBlock,这样坏区块一旦被踢出去就回不到最佳链了。
Instead of deleting the bad chain, I added an extra CheckBlock to ConnectBlock so bad blocks can't get back into the best chain once they're kicked out.
当前版本尚未建立逐条校对状态记录。来源核验、历史审校与当前译文校对是不同事项。
译文内容版本:fd6e9ddb0fe2。用于比对文本,不代表校对等级或更新时间。
请填写对应原文、现译文、建议译法和理由。复制后通过你联系本站作者的渠道提交;此处不会自动发送。