Error “Cannot set -listen=0 together with -listenonion=1” if incoming connections are disabled #542

issue kord1e openend this issue on February 2, 2022
  1. kord1e commented at 9:03 pm on February 2, 2022: none

    Bitcoin-Qt doesn’t start properly if incoming connections are disabled. It seems that this is caused by a conflicting Tor-related default setting.

    Expected behavior

    Bitcoin-Qt should start normally.

    Actual behavior

    Bitcoin-Qt complains: “Cannot set -listen=0 together with -listenonion=1” and refuses to start.

    To reproduce

    What I did:

    • Compiled bitcoin-qt from source on Linux
    • Started bitcoin-qt
    • Opened settings and disabled incoming connections
    • Restarted bitcoin-qt
    • Restarted bitcoin-qt again (had to reboot the computer)
    • bug occurred
    • Restarted bitcoin-qt with -listen=1 or -listenonion=0

    System information

    Compiled from source, latest Git revision as of 2nd of Feb.

    Other

    👍👍 for the error message, it was clear and explained the problem as well as how to work around it.

    When starting Bitcoin-Qt for the first time after disabling incoming connections, it started properly. This was strange, but is it because of the “restart required” flag in the configuration?

    It seems that DEFAULT_LISTEN_ONION is “true” and there’s no GUI switch to change this, and I didn’t find an option in the configuration file either but -listenonion=0 works. I think the problem occurs in init.cpp, line 890.

  2. kord1e added the label Bug on Feb 2, 2022


kord1e

Labels
Bug


github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin-core/gui. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-10-23 00:20 UTC

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