Allow dustrelayfee to be set to zero #12568

pull luke-jr wants to merge 1 commits into bitcoin:master from luke-jr:zero_dustrelayfee_opt changing 1 files +1 −1
  1. luke-jr commented at 5:38 PM on February 28, 2018: member

    I don't see and can't think of any rationale for forbidding this configuration.

  2. Allow dustrelayfee to be set to zero 874e818085
  3. randolf approved
  4. Empact commented at 12:29 AM on March 1, 2018: member

    GetDustThreshold is defined relative to dustRelayFee, FYI:

        // "Dust" is defined in terms of dustRelayFee,
        // which has units satoshis-per-kilobyte.
        // If you'd pay more in fees than the value of the output
        // to spend something, then we consider it dust.
        // A typical spendable non-segwit txout is 34 bytes big, and will
        // need a CTxIn of at least 148 bytes to spend:
        // so dust is a spendable txout less than
        // 182*dustRelayFee/1000 (in satoshis).
        // 546 satoshis at the default rate of 3000 sat/kB.
        // A typical spendable segwit txout is 31 bytes big, and will
        // need a CTxIn of at least 67 bytes to spend:
        // so dust is a spendable txout less than
        // 98*dustRelayFee/1000 (in satoshis).
        // 294 satoshis at the default rate of 3000 sat/kB.
    
  5. fanquake added the label TX fees and policy on Mar 1, 2018
  6. morcos commented at 10:29 PM on March 4, 2018: member

    utACK

  7. MarcoFalke commented at 11:14 PM on March 4, 2018: member

    Concept ACK. Might as well fix the braces {}, since this is a tiny code change.

  8. practicalswift commented at 9:41 AM on March 5, 2018: contributor

    utACK 874e8180858450e7cc597e8ed9b047c35e000dda

  9. laanwj commented at 4:36 PM on March 5, 2018: member

    I don't see and can't think of any rationale for forbidding this configuration.

    Potential rationales, for sanity check:

    • Is zero ever used as special value?
    • Do we ever divide by this value?
  10. morcos commented at 6:54 PM on March 5, 2018: member

    @laanwj I reviewed for those concerns and did not find anything of note. A couple of tests assume there is a dustrelayfee and will break if we change the default to 0, but nothing that needs to be changed for this PR.

  11. promag commented at 7:25 PM on March 5, 2018: member

    utACK 874e818.

    There is no rationale in #9380 for such condition.

  12. laanwj merged this on Mar 5, 2018
  13. laanwj closed this on Mar 5, 2018

  14. laanwj referenced this in commit ed6ae8059c on Mar 5, 2018
  15. PastaPastaPasta referenced this in commit db545647df on Jun 10, 2020
  16. PastaPastaPasta referenced this in commit effe9cd5ee on Jun 12, 2020
  17. PastaPastaPasta referenced this in commit 0cc4372814 on Jun 13, 2020
  18. PastaPastaPasta referenced this in commit 6d377c353d on Jun 14, 2020
  19. PastaPastaPasta referenced this in commit 1b4d89f319 on Jun 14, 2020
  20. 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-14 15:15 UTC

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