Allow users to delete accidental double-spent transactions #1898

issue ThePiachu opened this issue on October 2, 2012
  1. ThePiachu commented at 8:14 AM on October 2, 2012: none

    At the moment, if one accidentally performs a double-spent (or has a double-spent performed against them), the transaction is forever stored in the wallet.dat file and appears as a 0-confirmation transaction on top of the transaction history in BitcoinQT. There is no way to get rid of that transaction without purging the wallet through various workarounds through external software.

    I propose adding some option of deleting double-spent transactions once their paired transactions are buried deep in the blockchain (say, 120 confirmations). This would allow the users to clean their wallets from accidental double-spend transaction without enabling one an easier way to perform double-spent attacks by deleting an unconfirmed but a valid transaction.

  2. kangasbros commented at 12:41 PM on November 30, 2013: none

    Well, I have this issue, and it would be great to have some option for removing the doublespent transactions.

  3. ThePiachu commented at 6:28 PM on February 11, 2014: none

    I guess this feature might be either less or more desirable in the light of malleable transactions. More desirable since it would clear the transaction history from duplicate transactions created by changing the transactions by a third part, and less desirable since it would remove some evidence of the malicious activity.

  4. gmaxwell commented at 7:28 PM on February 11, 2014: contributor

    We shouldn't delete— some kind of 'hide' would probably be fine.

  5. laanwj added this to the milestone 0.9.0 on Feb 11, 2014
  6. laanwj commented at 8:36 PM on February 11, 2014: member

    Setting this to milestone 0.9.0, this suddenly became more urgent due to the malleability abuse.

  7. laanwj removed this from the milestone 0.9.0 on Feb 24, 2014
  8. laanwj commented at 10:10 AM on September 25, 2014: member

    This is possible now using -zapwallettx, closing.

  9. laanwj closed this on Sep 25, 2014

  10. KolbyML referenced this in commit 4edb8c5d8e on Dec 5, 2020
  11. DrahtBot locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-21 18:16 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me