> Using the global wait_until makes it impossible to adjust the timeout based on the hardware the test is running on.
>
> Fix that by using the mininode member function.
This is a backport of Core [[https://github.com/bitcoin/bitcoin/pull/19060 | PR19060]]