原始文献 / 论坛帖 / Re: Bitcoin crash when sending coins
Re: Bitcoin crash when sending coins
Bitcointalk · 2010-01-28 23:08:02 UTC
重新同步的想法是:遍历你的钱包,跟区块索引对一遍,找出你的这台电脑还不知道已经被花掉的交易。可能的情况是:这些币是在另一台用了钱包副本的电脑上花掉的,或者你把钱包恢复到了花掉它们之前的备份。目前软件只是假定自己永远知道交易花没花掉,因为花的时候它会在 wallet.dat 里标记已花掉。
钱包合并工具可以实现,但有了重新同步,大部分问题都解决了,需求就小多了。有了重新同步,你把一台钱包的钱全转到另一台,基本能达到同样的效果:接收方重新同步,发现重叠的币都被花掉了,然后在新交易里收到它们。
英文原文
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.
