aboutsummaryrefslogtreecommitdiff
path: root/test/functional
diff options
context:
space:
mode:
authorJon Atack <jon@atack.com>2021-07-13 15:41:16 +0200
committerJon Atack <jon@atack.com>2021-07-14 16:03:15 +0200
commit5a1ed96077852c739034c21d399da65db09e7714 (patch)
tree9d6532ee487b441cf8015162929a075f84224216 /test/functional
parent531c2b7c04898f5a2097f44e8c12bfb2f53aaf9b (diff)
test: whitelist rpc_rawtransaction peers to speed up tests
in my testing from 45-55 seconds to 15.
Diffstat (limited to 'test/functional')
-rwxr-xr-xtest/functional/rpc_rawtransaction.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/functional/rpc_rawtransaction.py b/test/functional/rpc_rawtransaction.py
index db57368eae..3ff74dc5a4 100755
--- a/test/functional/rpc_rawtransaction.py
+++ b/test/functional/rpc_rawtransaction.py
@@ -56,6 +56,10 @@ class RawTransactionsTest(BitcoinTestFramework):
["-txindex"],
["-txindex"],
]
+ # whitelist all peers to speed up tx relay / mempool sync
+ for args in self.extra_args:
+ args.append("-whitelist=noban@127.0.0.1")
+
self.supports_cli = False
def skip_test_if_missing_module(self):