Is there an existing issue for this?
- I have searched the existing issues
Current behaviour
When bitcoind is started with the following configuration files:
settings.json:
0{
1    "listen": false
2}
bitcoin.conf:
0listen=1
Then it does not listen. This is expected. Options from settings.json override ones from bitcoin.conf. Both options co-exist in ArgsManager::m_settings::rw_settings (listen=0) and ArgsManager::m_settings::ro_config (listen=1). Then ArgsManager::GetBoolArg() selects the value from rw_settings.
Expected behaviour
What should be the behavior with the following?
settings.json:
0{
1    "listen": false
2}
bitcoin.conf:
0listenonion=1
I think that for consistency with the above, it should start and not listen. That is, listenonion=1 from bitcoin.conf should be overriden / set to 0. But instead bitcoind refuses to start:
0$ bitcoind
1Error: Cannot set -listen=0 together with -listenonion=1
Steps to reproduce
- start bitcoin-qt, go to settings -> network and remove the checkbox from “Allow incoming connections”
- shut down
- add listenonion=1inbitcoin.conf(might as well be done as first step)
- start bitcoin-qt- it refuses to start withError: Cannot set -listen=0 together with -listenonion=1
Relevant log output
No response
How did you obtain Bitcoin Core
Compiled from source
What version of Bitcoin Core are you using?
master@7143d4388407ab3d12005e55a02d5e8f334e4dc9
Operating system and version
any
Machine specifications
No response