0
0
Fork 0
mirror of https://github.com/bitcoin/bitcoin.git synced 2025-03-06 14:19:59 -05:00
bitcoin-core/test/functional/test_framework
Vasil Dimov 6b3f6eae70
test: avoid generating non-loopback traffic from p2p_seednode.py
`p2p_seednode.py` would try to connect to `0.0.0.1` and `0.0.0.2` as
seed nodes. This sends outbound TCP packets on a non-loopback interface
to the default router.

Configure an unavailable proxy for all executions of `bitcoind` during
this test. Also change `0.0.0.1` and `0.0.0.2` because connecting to
them would skip the `-proxy=` setting because for such an address:
* `CNetAddr::IsLocal()` is true, thus
* `CNetAddr::IsRoutable()` is false, thus
* `CNetAddr::GetNetwork()` is `NET_UNROUTABLE`, even though
  `CNetAddr::m_net` is `NET_IPV4`.

This speeds up the execution time of `p2p_seednode.py`
from 12.5s to 2.5s.
2025-01-14 09:20:58 +01:00
..
crypto
__init__.py
address.py
authproxy.py test: report failure during utf8 response decoding 2024-11-11 10:45:01 -05:00
bdb.py
bip340_test_vectors.csv
blockfilter.py
blocktools.py test: [refactor] Fix E714 pycodestyle 2024-08-29 07:00:27 +02:00
coverage.py
descriptors.py
key.py
mempool_util.py assert_mempool_contents: assert not duplicates expected 2024-11-20 13:49:41 -05:00
messages.py test: Avoid F541 (f-string without any placeholders) 2024-12-05 08:39:09 +01:00
netutil.py test: avoid generating non-loopback traffic from p2p_seednode.py 2025-01-14 09:20:58 +01:00
p2p.py test: Avoid logging error when logging error 2024-12-03 09:40:18 +01:00
psbt.py
script.py
script_util.py
segwit_addr.py
socks5.py test: Avoid F541 (f-string without any placeholders) 2024-12-05 08:39:09 +01:00
test_framework.py test: raise explicit error if any of the needed release binaries is missing 2025-01-07 01:25:15 +01:00
test_node.py Merge bitcoin/bitcoin#31223: net, init: derive default onion port if a user specified a -port 2024-12-13 18:56:37 -05:00
test_shell.py test: fix TestShell initialization (late follow-up for #30463) 2024-08-25 20:57:22 +02:00
util.py qa: Limit -maxconnections in tests 2024-12-19 15:04:22 +00:00
v2_p2p.py
wallet.py test: switch MiniWallet padding unit from weight to vsize 2024-09-28 22:49:41 +02:00
wallet_util.py