Inspired by PRs #17340 and #15881.
- add logging
- pass -whitelist in
set_test_paramsto speed up transaction relay
wallet_avoidreuse.py is not intended to test P2P transaction relay/timing, so it should be fine to do this here. This reduces test run time variability and speeds up the test by 2-3 times on average.
Test run times in seconds:
before: 20, 24, 22, 17, 27, 40, 30
after: 10, 10, 8, 9, 10, 7, 8