关于 BitDNS 手续费的疑惑

中本聪SN-3810

不是 locktime。

Not locktime.

这里有一种设计,可以留待很久以后考虑:

There's a possible design for far in the future:

你有意写一笔双重支付。用同样的输入和输出再写一遍,但这次带上手续费。当你的双重支付进入区块时,第一笔支出就失效了。收款方其实不会察觉,因在新交易生效的那一刻,旧交易就失效了,新交易直接取而代之。

You intentionally write a double-spend. You write it with the same inputs and outputs, but this time with a fee. When your double-spend gets into a block, the first spend becomes invalid. The payee does not really notice, because at the moment the new transaction becomes valid, the old one becomes invalid, and the new transaction simply takes its place.

说起来容易,实现起来难。要写出一个能正确构造双重支付的客户端、在钱包里管理两个版本直到其中之一被选中、处理好所有边角情况,工作量不小。现有代码里的每一个假设都是「你不会试图写双重支付」。

It's easier said than implemented. There would be a fair amount of work to make a client that correctly writes the double-spend, manages the two versions in the wallet until one is chosen, handles all the corner cases. Every assumption in the existing code is that you're not trying to write double-spends.

比特币矿工侧也需要一些改动,让交易池有可能接受双重支付,但只严格限于输入输出匹配且手续费更高的情况。目前,双重支付从不被交易池接受,因此每个节点都通过尝试将自己最先看到的那笔交易打包进区块,为这笔交易的先后顺序作证。

There would need to be some changes on the Bitcoin Miner side also, to make the possibility to accept a double-spend into the transaction pool, but only strictly if the inputs and outputs match and the transaction fee is higher. Currently, double-spends are never accepted into the transaction pool, so every node bears witness to which transaction it saw first by working to put it into a block.

上下文
译文校对、修订与纠错

当前版本尚未建立逐条校对状态记录。来源核验、历史审校与当前译文校对是不同事项。

查看历史审校与代表修订 →

译文内容版本:3be959771776。用于比对文本,不代表校对等级或更新时间。

准备纠错说明

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

来源
英文原标题

Fees in BitDNS confusion

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

阅读字号

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