net: fix startup failures from stale Tor examples #36177

Manually merged
l0rinc merged 4 commits from l0rinc/proxy-network-names into master 2026-10-20 06:31:25 +00:00 AGit
l0rinc commented 2026-09-05 22:32:07 +00:00 (Migrated from github.com)

Problem: #34031 removed tor as a network name, but the -proxy help and Tor documentation still advertise it, and following those examples fails at startup.
The proxy option also maintains its own network-name mapping while -onlynet and getnodeaddresses use the shared parser.

Fix: Reuse the shared parser and canonical network names for -proxy, and document onion consistently. Unsupported network names are now echoed as supplied, matching the other interfaces, while accepted names remain case-insensitive.

**Problem:** #34031 removed `tor` as a network name, but the `-proxy` help and Tor documentation still advertise it, and following those examples fails at startup. The proxy option also maintains its own network-name mapping while `-onlynet` and `getnodeaddresses` use the shared parser. **Fix:** Reuse the shared parser and canonical network names for `-proxy`, and document `onion` consistently. Unsupported network names are now echoed as supplied, matching the other interfaces, while accepted names remain case-insensitive.
DrahtBot commented 2026-09-05 22:32:14 +00:00 (Migrated from github.com)

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

External sites

Reviews

See the guideline and AI policy for information on the review process.

Type Reviewers
ACK jpk68, vasild, sedited
Concept ACK jeanpablojp

If your review is incorrectly listed, please copy-paste <!--meta-tag:bot-skip--> into the comment that the bot should ignore.

Conflicts

Reviewers, this pull request conflicts with the following ones:

  • #35578 (net: don’t self advertise tor exit node ip addresses in outbound connections by stratospher)

If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

<!--e57a25ab6845829454e8d69fc972939a--> The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. <!--006a51241073e994b41acfe9ec718e94--> ### External sites * Code coverage & benchmarks: https://corecheck.dev/bitcoin/bitcoin/pulls/36177 * Ralph review <img src=https://review.fish.foo/assets/bitcoin/bitcoin/36177.png alt="Ralph review status"> https://git.fish.foo/bitcoin/bitcoin/pulls/36177#author-ralph <!--021abf342d371248e50ceaed478a90ca--> ### Reviews See [the guideline](https://github.com/bitcoin/bitcoin/blob/master/CONTRIBUTING.md#code-review) and [AI policy](https://github.com/bitcoin/bitcoin/blob/master/doc/AI_POLICY.md) for information on the review process. | Type | Reviewers | | ---- | --------- | | ACK | [jpk68](https://github.com/bitcoin/bitcoin/pull/36177#issuecomment-6257298473), [vasild](https://github.com/bitcoin/bitcoin/pull/36177#pullrequestreview-5580949477), [sedited](https://github.com/bitcoin/bitcoin/pull/36177#pullrequestreview-5581440205) | | Concept ACK | [jeanpablojp](https://github.com/bitcoin/bitcoin/pull/36177#pullrequestreview-5126650621) | If your review is incorrectly listed, please copy-paste <code>&lt;!--meta-tag:bot-skip--&gt;</code> into the comment that the bot should ignore. <!--174a7506f384e20aa4161008e828411d--> ### Conflicts Reviewers, this pull request conflicts with the following ones: * [#35578](https://github.com/bitcoin/bitcoin/pull/35578) <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/35578.svg"></sub> (net: don’t self advertise tor exit node ip addresses in outbound connections by stratospher) If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first. <!--5faf32d7da4f0f540f40219e4f7537a3-->
jeanpablojp (Migrated from github.com) reviewed 2026-09-06 21:23:10 +00:00
jeanpablojp (Migrated from github.com) left a comment

Concept ACK

Built and ran feature_proxy.py and rpc_net.py, and checked against the base that the refactor commit keeps the same accepted names and the same per-network proxies.

Concept ACK Built and ran `feature_proxy.py` and `rpc_net.py`, and checked against the base that the refactor commit keeps the same accepted names and the same per-network proxies.
Lines 16-18
jeanpablojp (Migrated from github.com) commented 2026-09-06 21:23:10 +00:00

This reads as if onion were new in 31.0, but v30.0 already accepted tor and onion for -proxy (ca5781e23a). Naming Core also keeps this 31.0 apart from the Tor 0.4.6 above. Something like this?

- Bitcoin Core 31.0 removed `tor` as a network name. The name to use for onion
  services is `onion`, as in `-onlynet=onion` or `-proxy=addr:port=onion`
  ([#34031](https://github.com/bitcoin/bitcoin/pull/34031)).
This reads as if `onion` were new in 31.0, but v30.0 already accepted `tor` and `onion` for `-proxy` (ca5781e23a). Naming Core also keeps this 31.0 apart from the Tor 0.4.6 above. Something like this? ```suggestion - Bitcoin Core 31.0 removed `tor` as a network name. The name to use for onion services is `onion`, as in `-onlynet=onion` or `-proxy=addr:port=onion` ([#34031](https://github.com/bitcoin/bitcoin/pull/34031)). ```
jeanpablojp (Migrated from github.com) commented 2026-09-06 21:23:10 +00:00

I found this pre-existing coverage gap while reviewing the refactor. Keeping the name proxy when clearing the IPv4 proxy still passes feature_proxy.py. Could we add this case, better placed next to the CJDNS removal below?

        self.stop_node(1)

        self.log.info("Test that clearing the IPv4 proxy also clears the name proxy")
        self.start_node(1, extra_args=[f"-proxy={self.conf1.addr[0]}:{self.conf1.addr[1]}", "-proxy=0=ipv4", "-dns=0"])
        with self.nodes[1].assert_debug_log(
            expected_msgs=["trying v1 connection (manual) to example.com:8333"],
            unexpected_msgs=["SOCKS5 connecting example.com"],
        ):
            self.nodes[1].addnode("example.com:8333", "onetry", v2transport=False)
        self.stop_node(1)
I found this pre-existing coverage gap while reviewing the refactor. Keeping the name proxy when clearing the IPv4 proxy still passes `feature_proxy.py`. Could we add this case, better placed next to the CJDNS removal below? ```suggestion self.stop_node(1) self.log.info("Test that clearing the IPv4 proxy also clears the name proxy") self.start_node(1, extra_args=[f"-proxy={self.conf1.addr[0]}:{self.conf1.addr[1]}", "-proxy=0=ipv4", "-dns=0"]) with self.nodes[1].assert_debug_log( expected_msgs=["trying v1 connection (manual) to example.com:8333"], unexpected_msgs=["SOCKS5 connecting example.com"], ): self.nodes[1].addnode("example.com:8333", "onetry", v2transport=False) self.stop_node(1) ```
jeanpablojp (Migrated from github.com) commented 2026-09-06 21:23:10 +00:00

nit: OnIoN isn't a fourth network here, it's the same one covering case-insensitive matching, and the comment above still describes only the three. Worth widening it?

        # Test for the absence of onion, I2P and CJDNS addresses, and case-insensitive names.
nit: `OnIoN` isn't a fourth network here, it's the same one covering case-insensitive matching, and the comment above still describes only the three. Worth widening it? ```suggestion # Test for the absence of onion, I2P and CJDNS addresses, and case-insensitive names. ```
l0rinc (Migrated from github.com) reviewed 2026-09-08 23:34:16 +00:00
l0rinc (Migrated from github.com) left a comment

Thanks @jeanpablojp, rebased, added new test, updated doc and removed redundant code comment

Thanks @jeanpablojp, rebased, added new test, updated doc and removed redundant code comment
Lines 16-18
l0rinc (Migrated from github.com) commented 2026-09-08 23:33:31 +00:00

Simplified similarly

Simplified similarly
l0rinc (Migrated from github.com) commented 2026-09-08 23:33:07 +00:00

While it's not strictly related, we do need the coverage in this area - added the test and you as coauthor

While it's not strictly related, we do need the coverage in this area - added the test and you as coauthor
l0rinc (Migrated from github.com) commented 2026-09-08 23:33:17 +00:00

removed the whole comment instead

removed the whole comment instead
vasild (Migrated from github.com) reviewed 2026-09-30 10:34:27 +00:00
vasild (Migrated from github.com) left a comment

Almost ACK b960b1e3e9, except example.com:8333

Almost ACK b960b1e3e99290937fa2e0b39b69953d59906bfe, except `example.com:8333`
vasild (Migrated from github.com) commented 2026-09-30 10:15:18 +00:00

It seems to me that this will actually attempt to open a connection to example.com:8333. That would be undesirable, see https://github.com/bitcoin/bitcoin/pull/31349.

To avoid that we usually provide a bogus proxy setting, like 127.0.0.1 on port 1. However here the idea is to explicitly go directly, without a proxy. So, to avoid non-localhost traffic, what about using e.g. 127.8.3.3:3 instead of example.com:8333?

It seems to me that this will actually attempt to open a connection to `example.com:8333`. That would be undesirable, see https://github.com/bitcoin/bitcoin/pull/31349. To avoid that we usually provide a bogus proxy setting, like `127.0.0.1` on port `1`. However here the idea is to explicitly go directly, without a proxy. So, to avoid non-localhost traffic, what about using e.g. `127.8.3.3:3` instead of `example.com:8333`?
First-time contributor

Base: 7988380da987c0b860885853ace8149b84ac2ee8
Head: 6c7c27f615a5b74e0aa921b8f103bf468a510aac

No verified findings are available from this partial review.

Review coverage was incomplete. The adversarial review had incomplete evidence.

Full review report

<!-- forgejo-review-bot:bitcoin/bitcoin --> Base: `7988380da987c0b860885853ace8149b84ac2ee8` Head: `6c7c27f615a5b74e0aa921b8f103bf468a510aac` No verified findings are available from this partial review. Review coverage was incomplete. The adversarial review had incomplete evidence. [Full review report](<https://review.fish.foo/traces/36177-6c7c27f615a5b74e0aa921b8f103bf468a510aac-205-2.html>)
vasild (Migrated from github.com) reviewed 2026-09-30 17:36:42 +00:00
vasild (Migrated from github.com) commented 2026-09-30 17:36:42 +00:00

-dns=0 prevents the connections to example.com:8333

`-dns=0` prevents the connections to `example.com:8333`
l0rinc (Migrated from github.com) reviewed 2026-09-30 18:25:42 +00:00
l0rinc (Migrated from github.com) commented 2026-09-30 18:25:42 +00:00

yes, we set -dns=0 explicitly in github.com/bitcoin/bitcoin@b960b1e3e9/test/functional/feature_proxy.py (L493). Do you still think we need to change anything here?

yes, we set `-dns=0` explicitly in https://github.com/bitcoin/bitcoin/blob/b960b1e3e99290937fa2e0b39b69953d59906bfe/test/functional/feature_proxy.py#L493. Do you still think we need to change anything here?
vasild (Migrated from github.com) approved these changes 2026-10-01 07:50:41 +00:00
vasild (Migrated from github.com) left a comment

ACK b960b1e3e9

Show Signature
-----BEGIN PGP SIG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iZwEyi5K1Hfkq3QeQPpSqK0HnDKTu1o1M4UbK
jJ1BSUX3BFPMyGg6MCccd4n1cvCiwvJo433jdhP+aWhO616FqdxfBAPdf2a4DjjS
fpVCPWoa49h1fKa2FdVBPpOOJpa7HTGUYBmMBRcw7/rog97dGwFR8niir74uoPzI
n3IghVFDWUiYnh20LjSzLagQtRqWv5QhwtqunITIiZ8PqC2KzeAjTGBFjdAMfG4d
qvNG+VGd/IGlrbkWFEqN7QF1zGBBoH2+IFKxwolZCSr0lqP0G/Tcn/Bem5cKeH9d
X+svNSQXg540nGDwcqdsvjTYyhMKVx+1o93rymRu6NYt0zdz/v6K+im9XE4Tjwtu
GLG/oKa2NND4jRYocCfaw6x4wSiqFWXynbyWvYSmJ+q24T4kaCGtPAdYH/FNoz93
3pGxTEwQx3Y6PEEkrlFUUP8wl4DRRQvsrV2HEazmwe3/9Ag9nNxX7h99EuFji0fh
YDQ=
=Anmy
-----END PGP SIGNATURE-----

vasild's public key is on openpgp.org

ACK b960b1e3e99290937fa2e0b39b69953d59906bfe <details> <summary>Show Signature</summary> ``` -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 ACK b960b1e3e99290937fa2e0b39b69953d59906bfe -----BEGIN PGP SIGNATURE----- iQRPBAEBCAA5FiEE5k2NRWFNsHVF2czBVN8G9ktVy78FAmq+ELQbFIAAAAAABAAO bWFudTIsMi41KzEuMTIsMiwzAAoJEFTfBvZLVcu/30wf/ioHRm4MrAqZtu2l7ku2 4NAGMXqC1IrdczTidSs8wwJ6gO1QI2BccK8vk/OJGfiBAgW2MEHJbhgz0W7Irm4v dQ1SlnsOr3jFoapznz9+2G8WraCJ5QESh7iBzqDsiaYMg5+zFALKLUkQrBksSGrj 6Hl+iCMMSnmCyFXrTSTRuBSQNBZHdeWHRPb0M6DLqNKigDjrGWRStD1e2mW96xYz 9OfbQR7rM9lCSs+++b915MVCd0E1TDAmnkRpUD1cxRy0dz6XYOIo5I1YmFLNOBJA z3m8Jdb7/HiB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0fh YDQ= =Anmy -----END PGP SIGNATURE----- ``` vasild's public key is [on openpgp.org](https://keys.openpgp.org/vks/v1/by-fingerprint/850E138BA9C0923881DFD55FCE712013582E2230) </details>
vasild (Migrated from github.com) reviewed 2026-10-01 07:54:15 +00:00
vasild (Migrated from github.com) commented 2026-10-01 07:54:15 +00:00

Given -dns=0 this is "safe". Still, using an address from 127.0.0.0/8 with some bogus port seems more direct and robust to me, but definitely not a blocker anymore (initially I didn't realize -dns=0 would stop that). Up to you.

Given `-dns=0` this is "safe". Still, using an address from `127.0.0.0/8` with some bogus port seems more direct and robust to me, but definitely not a blocker anymore (initially I didn't realize `-dns=0` would stop that). Up to you.
fanquake (Migrated from github.com) reviewed 2026-10-01 09:05:20 +00:00
fanquake (Migrated from github.com) commented 2026-10-01 09:05:20 +00:00

Do you still think we need to change anything here?

I think it would be better just just avoid "real" domains entirely, rather than rely on other settings.

> Do you still think we need to change anything here? I think it would be better just just avoid "real" domains entirely, rather than rely on other settings.
l0rinc (Migrated from github.com) reviewed 2026-10-01 19:10:03 +00:00
l0rinc (Migrated from github.com) commented 2026-10-01 19:10:03 +00:00

Valid point, rebased and used https://example.invalid instead, thanks for the feedback.

Valid point, rebased and used https://example.invalid instead, thanks for the feedback.
jpk68 commented 2026-10-19 00:48:29 +00:00 (Migrated from github.com)
ACK 6c7c27f615a5b74e0aa921b8f103bf468a510aac
vasild (Migrated from github.com) reviewed 2026-10-20 04:51:19 +00:00
vasild (Migrated from github.com) commented 2026-10-20 04:51:19 +00:00

Well, if -dns=0 is removed, then example.invalid:8333 would still leak stuff. It will not end up opening TCP connections to some real host on the internet, but would ask your DNS (usually hosted by your ISP) to resolve example.invalid.

Well, if `-dns=0` is removed, then `example.invalid:8333` would still leak stuff. It will not end up opening TCP connections to some real host on the internet, but would ask your DNS (usually hosted by your ISP) to resolve `example.invalid`.
vasild (Migrated from github.com) approved these changes 2026-10-20 05:02:40 +00:00
vasild (Migrated from github.com) left a comment

ACK 6c7c27f615

Show Signature
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

ACK 6c7c27f615a5b74e0aa921b8f103bf468a510aac
-----BEGIN PGP SIGNATURE-----

iQRPBAEBCAA5FiEE5k2NRWFNsHVF2czBVN8G9ktVy78FAmrW9dMbFIAAAAAABAAO
bWFudTIsMi41KzEuMTIsMiwzAAoJEFTfBvZLVcu/498gAKb/iC3eGvE0CbHNhXQK
z7ZJpKFr/SnGYophst+ztGZQ/amTUyzbGAFzrom1pdsPWIfwiMkbFIEHPuqDnBo4
xFDptNU1adJFtGMK3ngxLCUqA6bl//IYR3cSJlxQO2UISeSjlr6JzpxL3npDZM8C
MWnpJPu+ljkb+6VaHdFzXHkI9OPoCZRxj+OBzC28xI3H234mV2ha9An6yEK2ZWVb
j0QfKdx1OTi02WoChKukKVBmZthKsHrQlPfI7GFNprHTp7axsyx6a3ANLkiTDZHn
M4/czxvTuEPlIq7F9kWXqvU2GyDew8AecNmozl5K6ZRZXAU0SCRFXbFPOkcjd7U3
fY53+Is/A89XLqutZ3PU2EpK6EkTDvUcVzW+SaYgDMNpHH4aD0f7oL7Ufij5Vt3S
iyjnHzlw60hiIiLHhHlU33XgnC8934FsicbKwVhrgF5tFoHZ+8jOmMl8BKyJec4M
xQH3e06a9aJ9VX1GMhkp099J3suoHG+tE1UuTROeID8PC3YS/Zm/A5RzHN+RbpGv
OTQuUn+AUWRzwiUkz82f+ruoD9VxDfzljFrY3qQUscvw4glROhCsICuz3MnoTKh4
r9UdRYEQCpy3UjTp4e9FhpmtOzzMTvfbY2t81uXUyFYWawAZtohWewvueg7xs4g6
59Pf3veFwukFXPXUm1/8r28PMNeWrNx7KTsonclq8sZsnQY0qKG4DVqKsU5F7DR5
NbcznMiAxNsTN5JIMauS4FSzd2Nm0QhoMCusgy5umn67wdX53R4BvaP3GB4Nkm85
wy2hkCe60jRVGxTVGbxFUr7stA5bReugH/e7cv2R+Mj2hb2FxJc/3n+m2K8cnfOs
iXT39Sdtr8uwxxlUc+XHpqOt9Feev2jmOFZInMiPBx56NkBp39gQ0DJtFm5uKY+m
1mZYED2Di2oQUrN4Zf+gJB2eXWmZdB1HayT93rUplBMTmcqinYyLzjKAVrCQ2msw
RUDzxAhKU0qkBSfTPI/NnknVV2ZrrD9AXdQ2TAXwc5vu35oWARxTJBzccFUhVBIp
zbnsMyUTT7jWpnMd8Wo26hR/l7tb0JDFBJs/8aN6szyAr90IwUXKb6R+bAtInqpO
+99Tte8vs8CvXlTlyOkAgJa9sM5gbPOj5fsbtdPxJIFr93BeJPKT7VFTW+KAT22j
ifTFuyVJxQm9A8TXsTDqsAwdP0Ds1AYED1V8NllY5ihxbhvYkeu9oQ0u+7PpF+Wu
WW2cwLjmtZkZ304LqHN/24uTwrgpuKW+ghuB89zqxBRabKa6cYO82de1Xh7xahiZ
NCLvYTlOa25Pkee0yjq/wrN+rHeCfLjYw/WD4+zPpC/k9OEGDeU0cHEnP5KPvDUO
jBA=
=fcVV
-----END PGP SIGNATURE-----

vasild's public key is on openpgp.org

ACK 6c7c27f615a5b74e0aa921b8f103bf468a510aac <details> <summary>Show Signature</summary> ``` -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 ACK 6c7c27f615a5b74e0aa921b8f103bf468a510aac -----BEGIN PGP SIGNATURE----- iQRPBAEBCAA5FiEE5k2NRWFNsHVF2czBVN8G9ktVy78FAmrW9dMbFIAAAAAABAAO bWFudTIsMi41KzEuMTIsMiwzAAoJEFTfBvZLVcu/498gAKb/iC3eGvE0CbHNhXQK z7ZJpKFr/SnGYophst+ztGZQ/amTUyzbGAFzrom1pdsPWIfwiMkbFIEHPuqDnBo4 xFDptNU1adJFtGMK3ngxLCUqA6bl//IYR3cSJlxQO2UISeSjlr6JzpxL3npDZM8C MWnpJPu+ljkb+6VaHdFzXHkI9OPoCZRxj+OBzC28xI3H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B89zqxBRabKa6cYO82de1Xh7xahiZ NCLvYTlOa25Pkee0yjq/wrN+rHeCfLjYw/WD4+zPpC/k9OEGDeU0cHEnP5KPvDUO jBA= =fcVV -----END PGP SIGNATURE----- ``` vasild's public key is [on openpgp.org](https://keys.openpgp.org/vks/v1/by-fingerprint/850E138BA9C0923881DFD55FCE712013582E2230) </details>
sedited (Migrated from github.com) reviewed 2026-10-20 05:07:01 +00:00
sedited (Migrated from github.com) commented 2026-10-20 05:07:01 +00:00

What is the purpose of this additional test?

What is the purpose of this additional test?
l0rinc (Migrated from github.com) reviewed 2026-10-20 05:27:08 +00:00
l0rinc (Migrated from github.com) commented 2026-10-20 05:27:08 +00:00

mixed-case onion acceptance

You don't think that's useful?

> mixed-case `onion` acceptance You don't think that's useful?
sedited (Migrated from github.com) reviewed 2026-10-20 06:21:23 +00:00
sedited (Migrated from github.com) commented 2026-10-20 06:21:23 +00:00

Mmh, I thought it might be redundant with the ParseNetwork test, but I guess it is fine to show that this behaviour is unchanged here.

Mmh, I thought it might be redundant with the ParseNetwork test, but I guess it is fine to show that this behaviour is unchanged here.
sedited (Migrated from github.com) approved these changes 2026-10-20 06:21:51 +00:00
sedited (Migrated from github.com) left a comment
ACK 6c7c27f615a5b74e0aa921b8f103bf468a510aac
hebasto commented 2026-10-20 10:47:21 +00:00 (Migrated from github.com)

I believe this breaks feature_proxy.py:

314/501 - feature_proxy.py failed (exit code 1), Duration: 8 s

stdout:
2026-10-20T06:51:07.972690Z TestFramework (INFO): PRNG seed is: 7144233645913202955

2026-10-20T06:51:08.024059Z TestFramework (INFO): Initializing test directory D:\a\_temp\test_runner_₿_🏃_20261020_064604\feature_proxy_191

2026-10-20T06:51:08.027968Z TestFramework (WARNING): Testing without local unix domain sockets support

2026-10-20T06:51:10.122762Z TestFramework (INFO): Test RPC getnetworkinfo

2026-10-20T06:51:10.583417Z TestFramework (INFO): Test passing invalid -proxy hostname raises expected init error

2026-10-20T06:51:10.820972Z TestFramework (INFO): Test passing invalid -proxy port raises expected init error

2026-10-20T06:51:10.974829Z TestFramework (INFO): Test passing invalid -onion hostname raises expected init error

2026-10-20T06:51:11.314726Z TestFramework (INFO): Test passing invalid -onion port raises expected init error

2026-10-20T06:51:11.509242Z TestFramework (INFO): Test passing invalid -i2psam hostname raises expected init error

2026-10-20T06:51:11.727829Z TestFramework (INFO): Test passing invalid -i2psam port raises expected init error

2026-10-20T06:51:11.896352Z TestFramework (INFO): Test passing invalid -onlynet=i2p without -i2psam raises expected init error

2026-10-20T06:51:12.125347Z TestFramework (INFO): Test passing invalid -onlynet=cjdns without -cjdnsreachable raises expected init error

2026-10-20T06:51:12.334211Z TestFramework (INFO): Test passing -onlynet=onion with -onion=0/-noonion raises expected init error

2026-10-20T06:51:12.972635Z TestFramework (INFO): Test passing -onlynet=onion without -proxy, -onion or -listenonion raises expected init error

2026-10-20T06:51:13.195644Z TestFramework (INFO): Test passing -onlynet=onion without -proxy or -onion but with -listenonion=1 is ok

2026-10-20T06:51:15.407084Z TestFramework (INFO): Test unknown and removed network names are rejected by -onlynet

2026-10-20T06:51:15.753537Z TestFramework (INFO): Test passing trailing '=' raises expected init error

2026-10-20T06:51:15.972740Z TestFramework (INFO): Test unknown, removed and non-SOCKS5 network names are rejected by -proxy

2026-10-20T06:51:16.162078Z TestFramework (ERROR): Unexpected exception:

Traceback (most recent call last):

  File "D:\a\bitcoin-core-nightly\bitcoin-core-nightly\test\functional\test_framework\test_framework.py", line 146, in main

    self.run_test()

    ~~~~~~~~~~~~~^^

  File "D:\a\bitcoin-core-nightly\bitcoin-core-nightly/test/functional/feature_proxy.py", line 459, in run_test

    self.nodes[1].assert_start_raises_init_error(expected_msg=msg)

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^

  File "D:\a\bitcoin-core-nightly\bitcoin-core-nightly\test\functional\test_framework\test_node.py", line 750, in assert_start_raises_init_error

    self._raise_assertion_error(

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~^

        'Expected message "{}" does not fully match stderr:\n"{}"'.format(expected_msg, stderr))

        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "D:\a\bitcoin-core-nightly\bitcoin-core-nightly\test\functional\test_framework\test_node.py", line 231, in _raise_assertion_error

    raise AssertionError(self._node_msg(msg))

AssertionError: [node 1] Expected message "Error: Unrecognized network in -proxy='127.0.0.1:9050=Foo': 'Foo'" does not fully match stderr:

"Error: Unrecognized network in -proxy='127.0.0.1:9050=Foo': 'foo'"

2026-10-20T06:51:16.215032Z TestFramework (INFO): Not stopping nodes as test failed. The dangling processes will be cleaned up later.

I believe this [breaks](https://github.com/hebasto/bitcoin-core-nightly/actions/runs/39372512827/job/118489165206) `feature_proxy.py`: ``` 314/501 - feature_proxy.py failed (exit code 1), Duration: 8 s stdout: 2026-10-20T06:51:07.972690Z TestFramework (INFO): PRNG seed is: 7144233645913202955 2026-10-20T06:51:08.024059Z TestFramework (INFO): Initializing test directory D:\a\_temp\test_runner_₿_🏃_20261020_064604\feature_proxy_191 2026-10-20T06:51:08.027968Z TestFramework (WARNING): Testing without local unix domain sockets support 2026-10-20T06:51:10.122762Z TestFramework (INFO): Test RPC getnetworkinfo 2026-10-20T06:51:10.583417Z TestFramework (INFO): Test passing invalid -proxy hostname raises expected init error 2026-10-20T06:51:10.820972Z TestFramework (INFO): Test passing invalid -proxy port raises expected init error 2026-10-20T06:51:10.974829Z TestFramework (INFO): Test passing invalid -onion hostname raises expected init error 2026-10-20T06:51:11.314726Z TestFramework (INFO): Test passing invalid -onion port raises expected init error 2026-10-20T06:51:11.509242Z TestFramework (INFO): Test passing invalid -i2psam hostname raises expected init error 2026-10-20T06:51:11.727829Z TestFramework (INFO): Test passing invalid -i2psam port raises expected init error 2026-10-20T06:51:11.896352Z TestFramework (INFO): Test passing invalid -onlynet=i2p without -i2psam raises expected init error 2026-10-20T06:51:12.125347Z TestFramework (INFO): Test passing invalid -onlynet=cjdns without -cjdnsreachable raises expected init error 2026-10-20T06:51:12.334211Z TestFramework (INFO): Test passing -onlynet=onion with -onion=0/-noonion raises expected init error 2026-10-20T06:51:12.972635Z TestFramework (INFO): Test passing -onlynet=onion without -proxy, -onion or -listenonion raises expected init error 2026-10-20T06:51:13.195644Z TestFramework (INFO): Test passing -onlynet=onion without -proxy or -onion but with -listenonion=1 is ok 2026-10-20T06:51:15.407084Z TestFramework (INFO): Test unknown and removed network names are rejected by -onlynet 2026-10-20T06:51:15.753537Z TestFramework (INFO): Test passing trailing '=' raises expected init error 2026-10-20T06:51:15.972740Z TestFramework (INFO): Test unknown, removed and non-SOCKS5 network names are rejected by -proxy 2026-10-20T06:51:16.162078Z TestFramework (ERROR): Unexpected exception: Traceback (most recent call last): File "D:\a\bitcoin-core-nightly\bitcoin-core-nightly\test\functional\test_framework\test_framework.py", line 146, in main self.run_test() ~~~~~~~~~~~~~^^ File "D:\a\bitcoin-core-nightly\bitcoin-core-nightly/test/functional/feature_proxy.py", line 459, in run_test self.nodes[1].assert_start_raises_init_error(expected_msg=msg) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^ File "D:\a\bitcoin-core-nightly\bitcoin-core-nightly\test\functional\test_framework\test_node.py", line 750, in assert_start_raises_init_error self._raise_assertion_error( ~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 'Expected message "{}" does not fully match stderr:\n"{}"'.format(expected_msg, stderr)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\a\bitcoin-core-nightly\bitcoin-core-nightly\test\functional\test_framework\test_node.py", line 231, in _raise_assertion_error raise AssertionError(self._node_msg(msg)) AssertionError: [node 1] Expected message "Error: Unrecognized network in -proxy='127.0.0.1:9050=Foo': 'Foo'" does not fully match stderr: "Error: Unrecognized network in -proxy='127.0.0.1:9050=Foo': 'foo'" 2026-10-20T06:51:16.215032Z TestFramework (INFO): Not stopping nodes as test failed. The dangling processes will be cleaned up later. ```
fanquake commented 2026-10-21 20:39:09 +00:00 (Migrated from github.com)

Backported to 32.x in #36596.

Backported to `32.x` in #36596.
fanquake commented 2026-10-22 10:16:55 +00:00 (Migrated from github.com)

Backported to 31.x in #36319.

Backported to `31.x` in #36319.
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
bitcoin/bitcoin!36177
No description provided.