Skip to content

Commit 988721d

Browse files
theStackvasild
andcommitted
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 <[email protected]>
1 parent 17834bd commit 988721d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/functional/rpc_net.py

+3
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ class NetTest(BitcoinTestFramework):
6363
def set_test_params(self):
6464
self.num_nodes = 2
6565
self.extra_args = [["-minrelaytxfee=0.00001000"], ["-minrelaytxfee=0.00000500"]]
66+
# Specify a non-working proxy to make sure no actual connections to public IPs are attempted
67+
for args in self.extra_args:
68+
args.append("-proxy=127.0.0.1:1")
6669
self.supports_cli = False
6770

6871
def run_test(self):

0 commit comments

Comments
 (0)