Skip to content

Commit

Permalink
test: avoid internet traffic in rpc_net.py
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
theStack and vasild committed Nov 22, 2024
1 parent 17834bd commit 988721d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/functional/rpc_net.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 988721d

Please sign in to comment.