This PR gives some love to the functional test p2p_feefilter.py by introducing the following changes:
- add missing log messages for the
test_feefiltersubtest (the main one) - deduplicate code by using the utility function
wait_until(already using the recently introduced version) instead of a manual condition checking loop withtime.sleep - improve naming of the function
matchAllInvs(more expressive name, snake_case) and moving it from global namespace to the connection classFeefilterConn - speeding up the test significantly by the good ol' method of activating immediate tx relay (as seen on e.g. #17121, #17124, #17340, #17362, ...):
master branch:
$ time ./p2p_feefilter.py
...
real 0m39.367s
user 0m1.227s
sys 0m0.571s
PR branch:
$ time ./p2p_feefilter.py
...
real 0m9.386s
user 0m1.120s
sys 0m0.577s