aboutsummaryrefslogtreecommitdiff
path: root/src/warnings.cpp
diff options
context:
space:
mode:
authorVasil Dimov <vd@FreeBSD.org>2022-04-26 10:45:10 +0200
committerVasil Dimov <vd@FreeBSD.org>2022-09-05 17:52:08 +0200
commit2d0b4e4ff66e60c85f86c526a53f8fb242ebb7d0 (patch)
tree8121c24e1dd46bb61e7faf36c0b74d5ec2726bc6 /src/warnings.cpp
parent5291933fedceb9df16eb9e4627b1d7386b53ba07 (diff)
init: allow startup with -onlynet=onion -listenonion=1
It does not make sense to specify `-onlynet=onion` without providing a Tor proxy (even if other `-onlynet=...` are given). This is checked during startup. However, it was forgotten that a Tor proxy can also be retrieved from "Tor control" to which we connect if `-listenonion=1`. So, the full Tor proxy retrieval logic is: 1. get it from `-onion` 2. get it from `-proxy` 3. if `-listenonion=1`, then connect to "Tor control" and get the proxy from there (was forgotten before this change) Fixes https://github.com/bitcoin/bitcoin/issues/24980
Diffstat (limited to 'src/warnings.cpp')
0 files changed, 0 insertions, 0 deletions