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.