Author

Topic: What if you spend after receiving a double spend? (Read 1358 times)

administrator
Activity: 5222
Merit: 13032
What's interesting is to ask what happens if in the inputs you have addresses that are "fine" and others which have their balance dependent on the double-spend.

The good inputs will end up getting stuck. There was an "outbreak" of a similar issue a while ago when Bitcoin sent 0-confirmation coins that would never confirm, permanently tying up all of the other coins in that transaction. Bitcoin now never sends 0-confirmation coins and prefers to send fully-confirmed coins, so this sort of thing should be less likely.

ReacceptWalletTransactions() already re-checks your transactions on Bitcoin startup, but it doesn't seem to remove the transactions if they've become invalid. Maybe it should do so for sent transactions.
hero member
Activity: 489
Merit: 505
I think the transactions in question will go back to showing as zero confirmations.
Exactly, it'll return to 0 and never confirm Cheesy
Btw: all transactions could be invalidated, it's just incredibly unlikely, because someone would have to fork the chain before the transaction and overtake the current chain.
legendary
Activity: 1526
Merit: 1134
I think the transactions in question will go back to showing as zero confirmations.
legendary
Activity: 1106
Merit: 1004
What's interesting is to ask what happens if in the inputs you have addresses that are "fine" and others which have their balance dependent on the double-spend. What happens to this transactions after the block reorganization?
Hal
vip
Activity: 314
Merit: 4276
Suppose you receive a payment and then immediately spend it. Then there is a block reorganization and the payment to you goes away. It never comes back because it was a double spend. Can the client handle this? How would it appear in the transaction window?
Jump to: