HomePhabricator

test: speedup wallet tests by whitelisting peers (immediate tx relay)

Description

test: speedup wallet tests by whitelisting peers (immediate tx relay)

Summary:
Before:

wallet_abandonconflict.py                 | ✓ Passed  | 5 s
wallet_balance.py                         | ✓ Passed  | 8 s
wallet_balance.py --descriptors           | ✓ Passed  | 9 s
wallet_basic.py                           | ✓ Passed  | 18 s
wallet_groups.py                          | ✓ Passed  | 72 s
wallet_hd.py                              | ✓ Passed  | 7 s
wallet_hd.py --descriptors                | ✓ Passed  | 7 s
wallet_importdescriptors.py               | ✓ Passed  | 5 s
wallet_listreceivedby.py                  | ✓ Passed  | 18 s
wallet_listsinceblock.py                  | ✓ Passed  | 5 s
wallet_listsinceblock.py --descriptors    | ✓ Passed  | 9 s

After:

wallet_abandonconflict.py                 | ✓ Passed  | 5 s
wallet_balance.py                         | ✓ Passed  | 6 s
wallet_balance.py --descriptors           | ✓ Passed  | 6 s
wallet_basic.py                           | ✓ Passed  | 17 s
wallet_groups.py                          | ✓ Passed  | 9 s
wallet_hd.py                              | ✓ Passed  | 6 s
wallet_hd.py --descriptors                | ✓ Passed  | 7 s
wallet_importdescriptors.py               | ✓ Passed  | 5 s
wallet_listreceivedby.py                  | ✓ Passed  | 6 s
wallet_listsinceblock.py                  | ✓ Passed  | 5 s
wallet_listsinceblock.py --descriptors    | ✓ Passed  | 6 s

Note the significant speedup for wallet_groups.py and wallet_listreceivedby.py. For slower test machines, the gain can also be more significant for the other tests.

This is a backport of core#25865

Test Plan: ninja check-functional

Reviewers: #bitcoin_abc, sdulfari

Reviewed By: #bitcoin_abc, sdulfari

Differential Revision: https://reviews.bitcoinabc.org/D11884

Details

Provenance
PiRKAuthored on Aug 25 2022, 13:06
PiRKPushed on Aug 30 2022, 07:29
Reviewer
Restricted Project
Differential Revision
D11884: test: speedup wallet tests by whitelisting peers (immediate tx relay)
Parents
rABCd923fe4722bc: Center loading icon
Branches
Unknown
Tags
Unknown