Unconfirmed transactions that are not in your mempool either due to eviction or other means may be unlikely to be mined. abandontransaction gives the wallet a way to no longer consider as spent the coins that are inputs to such a transaction. All dependent transactions in the wallet will also be marked as abandoned. @laanwj also for 0.12
This is the basic functionality.
There are more things to add though. I have an RPC test in progress, but if anyone else wants to work on the remaining items, please do:
- Return abandoned status in listtransactions
- Return abandoned status in GUI
- Fix any issues with how abandoned txs should sort
- Add a way to abandon transactions from GUI
I built this off of #7306 to make sure the tests would work correctly.