Before:
wallet_resendwallettransactions.py | ✓ Passed | 14 s wallet_resendwallettransactions.py | ✓ Passed | 7 s wallet_resendwallettransactions.py | ✓ Passed | 9 s
After
wallet_resendwallettransactions.py | ✓ Passed | 3 s wallet_resendwallettransactions.py | ✓ Passed | 4 s wallet_resendwallettransactions.py | ✓ Passed | 6 s
Also fixes core#20143
This is a backport of core#20112