Page MenuHomePhabricator

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

Authored by PiRK on Aug 25 2022, 13:34.

Details

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

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable