test: avoid internet traffic in rpc_net.py

Can be tested by running

```
$ sudo tcpdump -i eth0 host 11.22.33.44
```

and verifying that no packets appear in the tcpdump output.

Co-authored-by: Vasil Dimov <vd@FreeBSD.org>
This commit is contained in:
Sebastian Falbesoner 2024-11-21 22:59:09 +01:00
parent 17834bd197
commit 988721d37a

View file

@ -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):