'minrelaytxfee' option not covered by tests, listed in Debugging/Testing options #8953

issue ftrader opened this issue on October 18, 2016
  1. ftrader commented at 11:40 AM on October 18, 2016: none

    The 'minrelaytxfee' option is described in the 'Fee filtering' section of the 0.13.0 release notes (https://bitcoincore.org/en/2016/08/23/release-0.13.0) as

    For several years now, Bitcoin Core nodes have used a minimum relay fee rate to help determine what unconfirmed transactions they’ll process, relay, and store in their individual memory pools. Each node gets to decide its own minimum relay fee rate, and if they receive a transaction whose fee rate is below that limit, they don’t add it to their memory pools or relay it to their other peers (although another mechanism called transaction priority historically allowed some transactions that pay a low fee to be accepted into mempools and relayed).

    This makes it appear as a fully supported feature, however, it is listed under 'Debugging/Testing options' when the --help option is used, and there seems to be no dedicated regression test for it.

    From what I can tell it is used in abandonconflict.py, but its functionality is not specifically covered by any unit or regression tests.

    Can you reliably reproduce the issue?

    Yes, this applies to 0.13.0 release and 0.13.1 development (current 0.13 branch)

    Steps to reproduce:

    1. run bitcoind --help
    2. observe where the option 'minrelaytxfee' is listed
    3. inspect the tests under 'qa' and 'src/test'

    Expected behaviour

    • existence of at least a 'qa' test specifically covering the option (range of values, checking that it works as described)
    • listing of the option under some non-'Debugging/Testing' group such as 'Node relay options', 'Wallet options' or general 'Options'

    Actual behaviour

    • 'minrelaytxfee' option is listed under 'Debugging/Testing options', suggesting it is experimental
    • 'minrelaytxfee' is used for a side effect in abandonconflict.py

    What version of bitcoin-core are you using?

    Official 0.13.0 binary, as well as verified in source code of v0.13.0 tag (commit a402396dce64c42ea73535b7dde4a9164d430438) and current 0.13 branch commit 907c314057b09f1565840237b29a1bd607623ccd .

  2. jonasschnelli added the label Tests on Oct 18, 2016
  3. MarcoFalke commented at 12:11 PM on October 18, 2016: member

    Thanks for raising the issue but the problem is more general and not just limited to -minrelaytxfee. We don't even have smoke tests for every rpc, let alone command line args.

    If you are interested in writing a python test for transaction relay policy, make sure it is easy to adjust in case priority gets removed. Moreover, note that there is also a transaction pool min fee, which adjusts when you hit the memory limit in the transaction pool. So for a transaction to be relayed by your node, it must satisfy (priority relay OR minrelaytxfee) AND (transaction pool min fee).

  4. MarcoFalke added the label Easy to implement on Oct 18, 2016
  5. jeffrade commented at 10:51 PM on December 28, 2017: contributor

    I think we can close this issue. Once #12001 is merged, minrelaytxfee will be covered in test/functional/wallet.py

  6. fanquake commented at 11:33 PM on December 28, 2017: member

    @jeffrade Edit the PR text in #12001 to include "Fixes #8953" and this issue will be automatically closed when that PR is merged.

  7. jeffrade commented at 11:45 PM on December 28, 2017: contributor

    @fanquake Just updated (sorry, wasn't aware of this feature). Thank you!

  8. MarcoFalke commented at 11:15 AM on December 29, 2017: member

    @jeffrade Thanks for looking at this. I left a suggestion on your pull so that both -- min relay tx fee and mempool min fee -- are tested.

  9. laanwj closed this on Jan 4, 2018

  10. laanwj referenced this in commit a9a49e6e7e on Jan 4, 2018
  11. PastaPastaPasta referenced this in commit a0abbd47a4 on Feb 13, 2020
  12. PastaPastaPasta referenced this in commit a2c8d92ee2 on Feb 27, 2020
  13. PastaPastaPasta referenced this in commit 4e6cd82529 on Feb 27, 2020
  14. PastaPastaPasta referenced this in commit 67cf9591c4 on Feb 27, 2020
  15. ckti referenced this in commit 41fa99cb01 on Mar 28, 2021
  16. DrahtBot locked this on Sep 8, 2021
  17. gades referenced this in commit 00a17451b2 on Feb 21, 2022

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

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