mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-09 11:27:28 -03:00
Merge bitcoin/bitcoin#31343: test: avoid internet traffic in rpc_net.py
988721d37a
test: avoid internet traffic in rpc_net.py (Sebastian Falbesoner) Pull request description: In order to avoid connecting to the internet in the functional test `rpc_net.py`, specify a non-working proxy (parameter `-proxy=127.0.0.1:1`, same approach as in #31142) for the nodes. There is at least one known instance where this is currently happening on master where a connection attempt to a public IP is made (see also the discussion in #31339):17834bd197/test/functional/rpc_net.py (L253)
Can be tested by running ``` $ sudo tcpdump -i eth0 host 11.22.33.44 ``` both on master and the PR branch and verifying that no packets appear in the tcpdump in the latter anymore. ACKs for top commit: achow101: ACK988721d37a
tdb3: ACK988721d37a
vasild: ACK988721d37a
Tree-SHA512: 0f51fedccbfac0f80a7e6f9c5ba9193d0c20b5a788553c7cd7e583225df7b1151b86cd848d6ccf61f7b2de848f0ac98d73d7b5db100aa54fe8cbeeb4c0549106
This commit is contained in:
commit
8ad2c90274
1 changed files with 3 additions and 0 deletions
|
@ -63,6 +63,9 @@ class NetTest(BitcoinTestFramework):
|
|||
def set_test_params(self):
|
||||
self.num_nodes = 2
|
||||
self.extra_args = [["-minrelaytxfee=0.00001000"], ["-minrelaytxfee=0.00000500"]]
|
||||
# Specify a non-working proxy to make sure no actual connections to public IPs are attempted
|
||||
for args in self.extra_args:
|
||||
args.append("-proxy=127.0.0.1:1")
|
||||
self.supports_cli = False
|
||||
|
||||
def run_test(self):
|
||||
|
|
Loading…
Reference in a new issue