Page MenuHomePhabricator

test: Speed up rpc_blockchain.py by removing miniwallet.generate()
ClosedPublic

Authored by Fabien on Nov 8 2022, 08:54.

Details

Summary
Speed up various tests:

    Remove unused nodes, which only consume time on start/stop
    Remove unused "bug workarounds"
    Remove the need for miniwallet.generate() by adding miniwallet.scan_blocks(). (On my system, with valgrind, generating 105 blocks takes 3.31 seconds. Rescanning 5 blocks takes 0.11 seconds.)

Backport of core#21200.

Test Plan
ninja all check-all

Diff Detail

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