Sweep up dust inputs when there is room #1675

issue gmaxwell opened this issue on August 14, 2012
  1. gmaxwell commented at 8:52 PM on August 14, 2012: contributor

    The coin selection should automatically sweep up excessive small / dust inputs in order to get them out of the txout set when there is room and the txn already has change. (e.g. excess priority before the txn loses freeness, or room before the next kiliobyte fee increment)

    This can be done as a post-processing step after the existing selection.

    Care should be taken to avoid reducing privacy by linking otherwise independent accounts. This can sometimes increase privacy by further disguising the values exchange.

  2. luke-jr commented at 9:01 PM on August 14, 2012: member

    But fees might not be rounded to kilobyte (and aren't any more, with Gavin's changes, AFAIK)

  3. gmaxwell commented at 9:05 PM on August 14, 2012: contributor

    Er. I'd missed that. I think we should keep the rounding behavior, both for improved compatibility with current behavior, and also because it leaves some free room for housekeeping operations like this.

  4. RayDillinger commented at 11:55 PM on September 19, 2013: none

    I would say that it is more important to structure costs correctly. It is the creation of dust txouts that causes both the expense of storing them on the blockchain and the eventual expense of redeeming them. A better solution IMO would be to make txins free and calculate fees based on txouts, and then allow clients sweep all dust from their accounts at will.

  5. gmaxwell commented at 12:00 AM on September 20, 2013: contributor

    @Cryddit alas, for a miner, making them free would be economically irrational since the scarcity creating the market to begin with is the maximum size of the block.

    (Also, making txins free entirely has the risk of people stuffing kilobytes of data in them for parasitic storage)

  6. MarcoFalke commented at 6:22 PM on December 21, 2015: member

    @gmaxwell This can be closed. We finally got rid of rounding up to the next 1kB in #7103 (rebase of #6708) and it's really unlikely those changes get reverted.

  7. suprnurd referenced this in commit 578d55979f on Dec 5, 2017
  8. Empact commented at 10:59 PM on February 16, 2018: member

    @MarcoFalke I suppose you can close this now that you're a member?

  9. fanquake closed this on Feb 16, 2018

  10. 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-18 21:16 UTC

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