qa: Move common args to bitcoin.conf #12443

pull MarcoFalke wants to merge 1 commits into bitcoin:master from MarcoFalke:Mf1802-qaCommonArgsToFile changing 4 files +9 −3
  1. MarcoFalke commented at 7:49 PM on February 15, 2018: member

    Beside removing duplicates of the same args in the code, this actually helps with debugging after a test failure.

    For example, bitcoin-qt has server turned off, so you'd have to turn it on every time, if you wanted to debug a temporary test datadir created by the test framework. Also, keypool would fill up if you forget to specify -keypool=1.

  2. qa: Move common args to bitcoin.conf face7220b7
  3. MarcoFalke added the label Tests on Feb 15, 2018
  4. laanwj commented at 7:56 PM on February 15, 2018: member

    Concept ACK

  5. esotericnonsense commented at 11:03 PM on February 15, 2018: contributor

    Tested ACK

  6. in test/functional/test_framework/test_node.py:64 in face7220b7
      61 | +        # Most callers will just need to add extra args to the standard list below.
      62 | +        # For those callers that need more flexibity, they can just set the args property directly.
      63 | +        # Note that common args are set in the config file (see initialize_datadir)
      64 |          self.extra_args = extra_args
      65 | -        self.args = [self.binary, "-datadir=" + self.datadir, "-server", "-keypool=1", "-discover=0", "-rest", "-logtimemicros", "-debug", "-debugexclude=libevent", "-debugexclude=leveldb", "-mocktime=" + str(mocktime), "-uacomment=testnode%d" % i]
      66 | +        self.args = [self.binary, "-datadir=" + self.datadir, "-logtimemicros", "-debug", "-debugexclude=libevent", "-debugexclude=leveldb", "-mocktime=" + str(mocktime), "-uacomment=testnode%d" % i]
    


    promag commented at 11:02 AM on February 16, 2018:

    BTW, why not move -logtimemicros and -debug* to conf (all static parameters really)?


    MarcoFalke commented at 5:24 PM on February 23, 2018:

    I think when you later spin up a node for debugging the datadir (block state, wallet state), you don't need to log micro time stamps. Also, I am not sure how the debug flags interfere when the conf sets -debug and the command line -nodebug ... Better leave it up for the user to set those explicitly, I think?


    promag commented at 5:32 PM on February 23, 2018:

    That's reasonable, thanks.

  7. promag commented at 11:02 AM on February 16, 2018: member

    utACK face722.

  8. laanwj commented at 4:35 PM on February 23, 2018: member

    @MarcoFalke I think this is ready for merge, but you might want to respond to @promag's comment

  9. MarcoFalke merged this on Feb 23, 2018
  10. MarcoFalke closed this on Feb 23, 2018

  11. MarcoFalke referenced this in commit 07090c5339 on Feb 23, 2018
  12. MarcoFalke deleted the branch on Feb 23, 2018
  13. PastaPastaPasta referenced this in commit 381005366d on Dec 12, 2020
  14. PastaPastaPasta referenced this in commit 93e2fa0a7e on Dec 12, 2020
  15. PastaPastaPasta referenced this in commit 5eb94d53aa on Dec 15, 2020
  16. PastaPastaPasta referenced this in commit 185e4b128c on Dec 15, 2020
  17. PastaPastaPasta referenced this in commit b00aa11ac8 on Dec 18, 2020
  18. 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-17 06:15 UTC

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