mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-06-02 11:11:04 +02: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
@ -63,6 +63,9 @@ class NetTest(BitcoinTestFramework):
|
|||||||
def set_test_params(self):
|
def set_test_params(self):
|
||||||
self.num_nodes = 2
|
self.num_nodes = 2
|
||||||
self.extra_args = [["-minrelaytxfee=0.00001000"], ["-minrelaytxfee=0.00000500"]]
|
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
|
self.supports_cli = False
|
||||||
|
|
||||||
def run_test(self):
|
def run_test(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user