checkOutput: Throw an error on old spent outputs#35
Conversation
|
Having reviewed this more, here is the situation they were trying to catch. A wallet spends an output and so the output is present in the spentOutputs database. However, typically, after being spent, the transaction containing the output is confirmed and the wallet will delete the spendable output from the wallet database in A better solution is to disallow all spent outputs. When each new block comes in, the wallet should: a) see if we have really old spent outputs that never showed up on the chain and unspend them and Let's redesign this solution a bit instead of using an ugly hack when we're trying to spend. |
Should be the adequate fix for the problem.