Setting an invalid proxy in GUI settings prevents program from starting #6749

issue laanwj opened this issue on October 2, 2015
  1. laanwj commented at 10:04 AM on October 2, 2015: member

    Catch 22:

    <arnep> hey guys i need some help, pls.
    <arnep> trying to open bitcore, "error proxy adress 0.0.0.0 3888
    <arnep> so i can't open the damn program
    <buZz> oh you're using a proxy?
    <buZz> maybe try disabling that
    <arnep> can't get in the program, where i put it o
    
  2. laanwj added the label Bug on Oct 2, 2015
  3. laanwj added the label GUI on Oct 2, 2015
  4. sipa commented at 10:11 AM on October 2, 2015: member

    Bitcoin Core or bitcore?

  5. laanwj commented at 10:43 AM on October 2, 2015: member

    Bitcoin Core.

    Resolved this by making him remove the Bitcoin-Qt structure using regedit. Would be handy to have a command-line flag to reset the options at start.

  6. MarcoFalke commented at 11:48 AM on November 18, 2015: member

    Resolved this by making him remove the Bitcoin-Qt structure using regedit. Would be handy to have a command-line flag to reset the options at start.

    Wouldn't -proxy=127.0.0.1:19999 overwrite the option at start?

  7. jonasschnelli commented at 12:28 PM on November 18, 2015: contributor

    Resolved this by making him remove the Bitcoin-Qt structure using regedit. Would be handy to have a command-line flag to reset the options at start.

    Wouldn't -proxy=127.0.0.1:19999 overwrite the option at start?

    Good point. It would not overwrite the setting (different layer), but temporarily allow to start bitcoin-qt and allow to change/reset the setting over the GUI.

  8. MarcoFalke commented at 2:05 PM on November 18, 2015: member

    Is there any priority when qt parses the args and config and overwrites the other?

    E.g.

    • -paytxfee is overwritten by qt
    • -proxy overwrites qt
  9. jonasschnelli commented at 2:11 PM on November 18, 2015: contributor

    It uses SetSoftArg() = Set an argument if it doesn't already have a value for some shared parameters like -dbcache, -par, -spendzeroconfchange, -upnp, -listen, -proxy, -onion and -lang.

    This means, the GUI settings can't override the command line startup or bitcoin.conf arguments.

  10. MarcoFalke commented at 3:23 PM on November 18, 2015: member

    Oh, it's updateGlobalFeeVariables() which does the overwrite. (Which it shouldn't do)

  11. laanwj commented at 2:12 PM on November 19, 2015: member

    The priority for settings is supposed to be (from highest to lowest priority):

    • Command line
    • bitcoin.conf
    • QSettings (in case of UI)
    • Base defaults
  12. jonasschnelli closed this on Nov 25, 2015

  13. laanwj commented at 2:05 PM on October 18, 2016: member

    For anyone who ends up here looking for the registry keys used by bitcoin-qt's settings, these are the following:

    HKEY_CURRENT_USER\Software\Bitcoin\Bitcoin-Qt
    HKEY_CURRENT_USER\Software\Bitcoin\Bitcoin-Qt-testnet
    
  14. 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 15:15 UTC

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