Skip to content

Commit e2c4ac7

Browse files
committed
Merge bitcoin/bitcoin#22447: test: whitelist rpc_rawtransaction peers to speed up tests
a3d6ec5 test: move rpc_rawtransaction tests to < 30s group (Jon Atack) 5a1ed96 test: whitelist rpc_rawtransaction peers to speed up tests (Jon Atack) Pull request description: Speed up the somewhat slow `rpc_rawtransaction.py` test by more than 3x (from 45-55 seconds to 15 seconds on a laptop running 2 x 2.5GHz). ACKs for top commit: mjdietzx: ACK a3d6ec5 kristapsk: ACK a3d6ec5 theStack: ACK a3d6ec5 🐎 brunoerg: tACK a3d6ec5 Tree-SHA512: f1d105594c9b5b257a7096b631a6fa5aeb50e330a351f75c2d6ffa7dd73abdb6e1f596a78c16d204a9bac3fe506e0519f9ad96bb8477ab6424c8e18125ccb659
2 parents fdf9b3e + a3d6ec5 commit e2c4ac7

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

test/functional/rpc_rawtransaction.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ def set_test_params(self):
5656
["-txindex"],
5757
["-txindex"],
5858
]
59+
# whitelist all peers to speed up tx relay / mempool sync
60+
for args in self.extra_args:
61+
args.append("[email protected]")
62+
5963
self.supports_cli = False
6064

6165
def skip_test_if_missing_module(self):

test/functional/test_runner.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,6 @@
125125
'wallet_abandonconflict.py --legacy-wallet',
126126
'wallet_abandonconflict.py --descriptors',
127127
'feature_csv_activation.py',
128-
'rpc_rawtransaction.py --legacy-wallet',
129-
'rpc_rawtransaction.py --descriptors',
130128
'wallet_address_types.py --legacy-wallet',
131129
'wallet_address_types.py --descriptors',
132130
'feature_bip68_sequence.py',
@@ -173,6 +171,8 @@
173171
'feature_proxy.py',
174172
'rpc_signrawtransaction.py --legacy-wallet',
175173
'rpc_signrawtransaction.py --descriptors',
174+
'rpc_rawtransaction.py --legacy-wallet',
175+
'rpc_rawtransaction.py --descriptors',
176176
'wallet_groups.py --legacy-wallet',
177177
'p2p_addrv2_relay.py',
178178
'wallet_groups.py --descriptors',

0 commit comments

Comments
 (0)