aboutsummaryrefslogtreecommitdiff
path: root/test/functional/rpc_packages.py
diff options
context:
space:
mode:
authorAndrew Chow <github@achow101.com>2022-12-07 17:17:01 -0500
committerAndrew Chow <github@achow101.com>2022-12-09 13:57:01 -0500
commitff6c9fe02743c9628e49a504b6b879d687c7390f (patch)
treea1c10064df2776d8888dcf959007efb01e068db3 /test/functional/rpc_packages.py
parent8c20796aacbbf5261e1922d45fc8afe75f54fefb (diff)
downloadbitcoin-ff6c9fe02743c9628e49a504b6b879d687c7390f.tar.xz
tests: Whitelist test p2p connection in rpc_packages
test_submit_child_with_parents creates a p2p connection which waits for the node to announce transactions to it. By whitelisting this connection, we can reduce the amount of time spent waiting for this announcement which improves the test runtime and runtime variance.
Diffstat (limited to 'test/functional/rpc_packages.py')
-rwxr-xr-xtest/functional/rpc_packages.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/functional/rpc_packages.py b/test/functional/rpc_packages.py
index a512a6b675..df11750438 100755
--- a/test/functional/rpc_packages.py
+++ b/test/functional/rpc_packages.py
@@ -29,6 +29,7 @@ class RPCPackagesTest(BitcoinTestFramework):
def set_test_params(self):
self.num_nodes = 1
self.setup_clean_chain = True
+ self.extra_args = [["-whitelist=noban@127.0.0.1"]] # noban speeds up tx relay
def assert_testres_equal(self, package_hex, testres_expected):
"""Shuffle package_hex and assert that the testmempoolaccept result matches testres_expected. This should only