[补丁] 自动验证区块

中本聪SN-2469
中本聪原话中本聪原帖 ↗

也许可以在检查之后主动调用 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。用于比对文本,不代表校对等级或更新时间。

准备纠错说明

请填写对应原文、现译文、建议译法和理由。复制后通过你联系本站作者的渠道提交;此处不会自动发送。

来源
英文原标题

[PATCH] Automatic block validation

Bitcointalk · 原始链接 ↗ 记录编号 SN-2469

阅读字号

选择适合你的字号,之后阅读会继续使用。