diff options
author | Jon Atack <jon@atack.com> | 2019-11-04 09:52:10 +0100 |
---|---|---|
committer | Jon Atack <jon@atack.com> | 2019-11-07 10:03:28 +0100 |
commit | 0e7c90eb37a687158c261ddd1ff9f1028a1e7012 (patch) | |
tree | 4e0eef70af6bf635de092b048b41f59d24bd7189 /test/functional/wallet_avoidreuse.py | |
parent | 6d50b2606ea9249627556051637080c3587b1b04 (diff) |
test: speed up wallet_avoidreuse.py
Use -whitelist to speed up transaction relay.
The wallet_avoidreuse.py test is not intended to test transaction relay/timing,
so it should be fine to do this here.
This greatly reduces test run time variability and speeds up the test by 2-3
times on average, e.g. on my system from 20-30 seconds down to 8-10 seconds.
Diffstat (limited to 'test/functional/wallet_avoidreuse.py')
-rwxr-xr-x | test/functional/wallet_avoidreuse.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/functional/wallet_avoidreuse.py b/test/functional/wallet_avoidreuse.py index 4b87b3c107..16925ea753 100755 --- a/test/functional/wallet_avoidreuse.py +++ b/test/functional/wallet_avoidreuse.py @@ -68,6 +68,9 @@ class AvoidReuseTest(BitcoinTestFramework): def set_test_params(self): self.setup_clean_chain = False self.num_nodes = 2 + # This test isn't testing txn relay/timing, so set whitelist on the + # peers for instant txn relay. This speeds up the test run time 2-3x. + self.extra_args = [["-whitelist=127.0.0.1"]] * self.num_nodes def skip_test_if_missing_module(self): self.skip_if_no_wallet() |