add ability to remove (dust) UTXOs #23875

issue antonilol opened this issue on December 27, 2021
  1. antonilol commented at 2:14 PM on December 27, 2021: none

    Is your feature request related to a problem? Please describe.

    <!-- A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] -->

    problem: i have a lot of 0 sat UTXOs (after flooding the testnet lol)

    Describe the solution you'd like

    <!-- A clear and concise description of what you want to happen. -->

    an rpc call to remove UTXOs for example: bitcoin-cli removeutxos with an argument to remove everything with less than the specified amount

    Describe alternatives you've considered

    <!-- A clear and concise description of any alternative solutions or features you've considered. -->

    making a new wallet, sending coins from the old one to the new one, remove the old wallet

    Additional context

    <!-- Add any other context or screenshots about the feature request here. -->

  2. antonilol added the label Feature on Dec 27, 2021
  3. kristapsk commented at 3:06 PM on December 27, 2021: contributor

    Probably better solution would be to have option to hide from UI and ignore in coin selection UTXOs below certain amount?

    Even better idea that also reduces global UTXO set so is good for Bitcoin - dust-b-gone by @petertodd.

  4. antonilol commented at 3:44 PM on December 27, 2021: none

    why hide them? 0 sat UTXOs cost more to spend than they have value. i mean remove them from the wallet or even put them on a list to ignore them when rescanning the blockchain. dust b gone is a nice idea but as said there it's offline

  5. antonilol commented at 6:01 PM on December 28, 2021: none

    dust b gone works if the dust value is more than an input costs. Nobody is gonna pay for my 0 sat UTXOs

  6. petertodd commented at 2:17 PM on December 29, 2021: contributor

    On Tue, Dec 28, 2021 at 10:01:46AM -0800, Antoni Spaanderman wrote:

    dust b gone works if the dust value is more than an input costs. Nobody is gonna pay for my 0 sat UTXOs

    Agreed. The best dust-b-gone can do in that circumstance is act as a way to let others donate money to get UTXOs removed. And I never actually implemented that.

  7. rebroad commented at 1:43 PM on April 18, 2023: contributor

    image I do think there's an unforeseen cost in storing these dust UTXOs, which might result in people willing to pay into a pot to have them cleared up - a bit like people grouping together to clean up the beaches of litter. If people didn't have to pay to pick-up their own dust, then dust-cleaning might occur more often.

  8. petertodd commented at 12:28 AM on April 27, 2023: contributor

    @rebroad The economic way to deal with dust UTXO's would be to soft-fork in a per-UTXO storage "tax", that eventually makes a UTXO unsepndable. At that point it can be removed from the UTXO set. You can't actually recover that tax in that circumstance with a soft-fork. But that's ok - the amount of money tied up in dust UTXO's isn't very big anyway.

  9. rebroad commented at 6:39 AM on April 27, 2023: contributor

    I'm curious what algorithms you have in mind. How would you derive the numbers used in this algorithm? ​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​

    On Thu, 27 Apr 2023, 01:28 Peter Todd, @.***> wrote:

    @rebroad https://github.com/rebroad The economic way to deal with dust UTXO's would be to soft-fork in a per-UTXO storage "tax", that eventually makes a UTXO unsepndable. At that point it can be removed from the UTXO set. You can't actually recover that tax in that circumstance with a soft-fork. But that's ok - the amount of money tied up in dust UTXO's isn't very big anyway.

    — Reply to this email directly, view it on GitHub https://github.com/bitcoin/bitcoin/issues/23875#issuecomment-1524286578, or unsubscribe https://github.com/notifications/unsubscribe-auth/AALVTK6NNWZP2TC6RT3Q62TXDG4R3ANCNFSM5K2NSC5A . You are receiving this because you were mentioned.Message ID: @.***>

  10. willcl-ark commented at 4:00 PM on September 21, 2023: member

    The feature request didn't seem to attract much attention in the past. Also, the issue seems not important enough right now to keep it sitting around idle in the list of open issues.

    Pull requests with improvements are always welcome.

  11. willcl-ark closed this on Sep 21, 2023

  12. bitcoin locked this on Sep 20, 2024

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-13 15:14 UTC

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