mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-08 10:31:50 -05:00
Merge bitcoin/bitcoin#22447: test: whitelist rpc_rawtransaction peers to speed up tests
a3d6ec5bb5
test: move rpc_rawtransaction tests to < 30s group (Jon Atack)5a1ed96077
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: ACKa3d6ec5bb5
kristapsk: ACKa3d6ec5bb5
theStack: ACKa3d6ec5bb5
🐎 brunoerg: tACKa3d6ec5bb5
Tree-SHA512: f1d105594c9b5b257a7096b631a6fa5aeb50e330a351f75c2d6ffa7dd73abdb6e1f596a78c16d204a9bac3fe506e0519f9ad96bb8477ab6424c8e18125ccb659
This commit is contained in:
commit
e2c4ac7cfb
2 changed files with 6 additions and 2 deletions
|
@ -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):
|
||||
|
|
|
@ -125,8 +125,6 @@ BASE_SCRIPTS = [
|
|||
'wallet_abandonconflict.py --legacy-wallet',
|
||||
'wallet_abandonconflict.py --descriptors',
|
||||
'feature_csv_activation.py',
|
||||
'rpc_rawtransaction.py --legacy-wallet',
|
||||
'rpc_rawtransaction.py --descriptors',
|
||||
'wallet_address_types.py --legacy-wallet',
|
||||
'wallet_address_types.py --descriptors',
|
||||
'feature_bip68_sequence.py',
|
||||
|
@ -173,6 +171,8 @@ BASE_SCRIPTS = [
|
|||
'feature_proxy.py',
|
||||
'rpc_signrawtransaction.py --legacy-wallet',
|
||||
'rpc_signrawtransaction.py --descriptors',
|
||||
'rpc_rawtransaction.py --legacy-wallet',
|
||||
'rpc_rawtransaction.py --descriptors',
|
||||
'wallet_groups.py --legacy-wallet',
|
||||
'p2p_addrv2_relay.py',
|
||||
'wallet_groups.py --descriptors',
|
||||
|
|
Loading…
Add table
Reference in a new issue