Rate-limit free transactions #117

pull gavinandresen wants to merge 2 commits into bitcoin:master from gavinandresen:limitfree changing 1 files +22 −12
  1. gavinandresen commented at 5:50 PM on March 13, 2011: contributor

    Reason for this change: better mitigation of "penny-flooding."

    Behavior before this change: If you ran with the -limitfreerelay boolean arg set, bitcoin would stop relaying free transactions if it got more than 150Kbytes of them in any 10-minute period.

    Behavior after this change: Bitcoin will stop relaying free transactions based on an exponential rate-limiting function, where more transactions in a shorter period of time are more likely to be dropped (and the default average is to allow about 150Kbytes over 10 minutes). -limitfreerelay is changed from a boolean to a KBytes/minute rate; default is 15.

    Original code from Satoshi-- I added a couple of comments and allowed the rate to be set with the -limitefreerelay option.

  2. Continuously rate-limit free transactions.
    Changed algorithm to use continuous exponential function instead of discrete 10-minute window.
    Changed -limitfreerelay to be kilobytes-per-minute instead of boolean.
    5de8b54c51
  3. Make sure rate-limiting code is thread-safe 88abf70386
  4. sipa referenced this in commit a064934ec0 on Dec 4, 2014
  5. sipa referenced this in commit 87bddb7a3a on Dec 4, 2014
  6. sipa referenced this in commit eb6347679b on Dec 5, 2014
  7. MarcoFalke referenced this in commit 7950df6b17 on Mar 26, 2016
  8. nomnombtc referenced this in commit 5420b2c32a on Oct 19, 2016
  9. deadalnix referenced this in commit e2e8a362ad on Jan 19, 2017
  10. cryptapus referenced this in commit 8eab19b88d on Oct 30, 2018
  11. attilaaf referenced this in commit fd3c7cea59 on Jan 13, 2020
  12. Losangelosgenetics referenced this in commit 92101e1dbe on Mar 12, 2020
  13. cryptapus referenced this in commit f1a2125a49 on May 3, 2021
  14. rajarshimaitra referenced this in commit f40bddcee5 on Aug 5, 2021
  15. 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-13 21:16 UTC

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