Fix #846. Allow negative options such as "nolisten=1" in bitcoin.conf as well as on the command line. #847

pull dooglus wants to merge 0 commits into bitcoin:master from dooglus:master changing 0 files +0 −0
  1. dooglus commented at 9:14 AM on February 16, 2012: contributor

    I copied this whole block out of ParseParameters() and changed the variable names.

    Perhaps it's better to move this code into a new function and call it from both places.

    Or we could just process all the "-no" parameters at once, after bitcoin.conf has been processed.

    The "--" -> "-" processing needs to stay where it is, however, so that --datadir= can be used to locate bitcoin.conf.

  2. gavinandresen commented at 3:40 PM on February 16, 2012: contributor

    I think a separate method called from ParseParameters and ReadConfigFile is the better way to go.

  3. dooglus merged this on Feb 16, 2012
  4. dooglus closed this on Feb 16, 2012

  5. ptschip referenced this in commit b940481983 on Dec 19, 2017
  6. lateminer referenced this in commit fc924c1f63 on Apr 6, 2019
  7. 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-16 00:15 UTC

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