From ff6c9fe02743c9628e49a504b6b879d687c7390f Mon Sep 17 00:00:00 2001 From: Andrew Chow Date: Wed, 7 Dec 2022 17:17:01 -0500 Subject: [PATCH] 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. --- test/functional/rpc_packages.py | 1 + 1 file changed, 1 insertion(+) diff --git a/test/functional/rpc_packages.py b/test/functional/rpc_packages.py index a512a6b675f..df11750438d 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