回复:总是支付交易费?
原始发布页
打开来源页面查看 1 个交叉存档
目前,是否支付交易费通过 -paytxfee 开关手动控制。让软件自动检查近期区块的大小,以判断是否应该支付交易费会非常容易。我们距离达到阈值还远得很,现在还不需要这样做。无论如何,先看看手动控制的效果如何也是个好主意。
即使达到阈值也没什么大不了。免费交易只不过要花更长时间才能进入区块。
我粗略统计了大约从 74000-78000 的 4000 个区块。这里不包括区块奖励交易:
平均每个区块有 2 笔交易,每小时 17 笔交易,每天 400 笔交易。
每个区块的平均交易字节数为 428 字节,也就是每笔交易 214 字节。
当前阈值是每个区块 200KB,或者说每个区块大约 1000 笔交易。我认为应该降到每个区块 50KB。即便如此,仍然是每个区块平均交易数的 100 多倍。
这个阈值以后很容易修改。时机到来时,我们可以决定提高它。把它保持在较低水平作为断路器,并按需提高,是个好主意。如果我们现在达到阈值,几乎可以肯定是某种洪泛,而不是真实使用。在这种情况下,保持较低的阈值有助于限制浪费的磁盘空间量。
英文原文
展开英文原文
Currently, paying a fee is controlled manually with the -paytxfee switch. It would be very easy to make the software automatically check the size of recent blocks to see if it should pay a fee. We're so far from reaching the threshold, we don't need that yet. It's a good idea to see how things go with controlling it manually first anyway.
It's not a big deal if we reach the threshold. Free transactions would just take longer to get into a block.
I did a rough tally of 4000 blocks from around 74000-78000. This is excluding the block reward transactions:
There were average 2 transactions per block, 17 transactions per hour, 400 transactions per day.
Average transaction bytes per block was 428 bytes, or 214 bytes per transaction.
The current threshold is 200KB per block, or about 1000 transactions per block. I think it should be lowered to 50KB per block. That would still be more than 100 times the average transactions per block.
The threshold can easily be changed in the future. We can decide to increase it when the time comes. It's a good idea to keep it lower as a circuit breaker and increase it as needed. If we hit the threshold now, it would almost certainly be some kind of flood and not actual use. Keeping the threshold lower would help limit the amount of wasted disk space in that event.