This is a follow-up to implement a couple of test improvements discussed in recent IPC PRs and issues.
- adds a test to
interface_ipc_mining.pyto verify thatcreateNewBlockwakes up immediately when the tip advances, rather than waiting for the cooldown timer to expire (https://github.com/bitcoin/bitcoin/pull/34184#discussion_r2842239399). - moves
make_mining_ctxintoipc_util.pyso it can be reused across the IPC tests instead of duplicating the setup code (https://github.com/bitcoin/bitcoin/pull/34422#discussion_r2852445430). - adds a test case to verify that providing an invalid coinbase to
submitSolutionreturns a remote exception instead of crashing the node, closing the loop on the issue reported in #33341. - scales IPC wait timeouts using the test suite’s
timeout_factorto prevent spurious failures in heavily loaded CI environments, capping extended waits to avoid test runner hangs (bitcoin-core/libmultiprocess#253 (comment)).
Closes #33341.