This PR moves sync_blocks and sync_mempool out from test_framework/util.py to test_framework/test_framework.py so they can take contextual information of test framework into account.
- Change all reference callers to call functions from
test_framework.py - Remove
**kwargswhich is not used - Take into account of
timeout_factorwhen respecting timeout in function implementations. - Pass all tests by running
./test/functional/test_runner.py
fixes #18930