Bitcointalk · Bitcoin crash when sending coins

中本聪,2010 年 1 月 28 日

SN-0102 已核对来源,附原文与上下文。

阅读语言
中文译文

重新同步的做法是遍历你的钱包,对照区块索引,找出你当前这台电脑不知道已被花掉的交易。如果你在另一台用钱包副本的电脑上花了钱,或者你不得不把钱包恢复到花钱之前的备份,就会出现这种情况。目前软件只是默认自己总是知道哪些交易已花掉,因为花钱时它会在 wallet.dat 里做标记。

钱包合并工具可以做,但一旦重新同步解决了大部分问题,对它的需求就小多了。有了重新同步,你把一个钱包里的全部钱发给另一个钱包,效果差不多。接收方重新同步后发现所有重叠的硬币都已花掉,然后在新的交易里再收一遍。

ORIGINAL · 英文原文
The resync idea would go through your wallet and check it against the block index to find any transactions that your current computer doesn't realize are already spent.  That could happen if they were spent on another computer with a copy of the wallet file, or you had to restore the wallet to a backup from before they were spent.  Currently, the software just assumes it always knows whether its transactions are spent because it marks them spent in wallet.dat when it spends them.

A wallet merge tool is possible to implement but much less in demand once resync solves most of the problem.  With resync, you could do about the same thing by sending all the money from one wallet to the other.  The receiver would resync and discover all its overlapping coins were spent, then receive them in the new transaction.
来源
Bitcointalk 原始链接 ↗ 记录编号 SN-0102