From dd78e3fa439d57e148a2a5e312021da962c4a394 Mon Sep 17 00:00:00 2001 From: Sebastian Falbesoner Date: Sun, 5 Mar 2023 01:45:23 +0100 Subject: [PATCH] test: speedup rpc_psbt.py by whitelisting peers (immediate tx relay) master branch: 0m36.86s real 0m03.26s user 0m01.69s system 0m35.71s real 0m03.78s user 0m01.64s system 0m45.76s real 0m03.12s user 0m01.27s system PR branch: 0m13.04s real 0m02.66s user 0m00.93s system 0m14.08s real 0m02.81s user 0m00.82s system 0m14.05s real 0m02.50s user 0m00.93s system --- test/functional/rpc_psbt.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/functional/rpc_psbt.py b/test/functional/rpc_psbt.py index 58a80e37a20..dff2c80d928 100755 --- a/test/functional/rpc_psbt.py +++ b/test/functional/rpc_psbt.py @@ -59,6 +59,9 @@ class PSBTTest(BitcoinTestFramework): ["-walletrbf=0", "-changetype=legacy"], [] ] + # whitelist 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):