> I investigated the issue in [[https://github.com/bitcoin/bitcoin/pull/19876 | core#19876]] and I still intend to fix the underlying issue of a race when using wallet RPCs right after starting a node in that PR. However, since that is a bit more complicated than I initially thought it makes sense to merge the fix of the test so the intermittent test failures stop. This fix in the test is going to be needed, either way, #19876 will only provide an error where before it was reporting a false balance
Co-authored-by: João Barbosa <joao.paulo.barbosa@gmail.com>
This is a backport of [[https://github.com/bitcoin/bitcoin/pull/19876 | core#19876]]