mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-24 18:23:26 -03:00
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:
parent
17834bd197
commit
988721d37a
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…
Add table
Reference in a new issue