HomePhabricator

Merge #13304: qa: Fix wallet_listreceivedby race

Description

Merge #13304: qa: Fix wallet_listreceivedby race

Summary:
fa865efa4a qa: Fix wallet_listreceivedby race (MarcoFalke)

Pull request description:

Generating a block on node 0 will only get node 0 out of IBD and not node 1. So the inv for the `txid` is dropped by node 1 and the call to `sync_all` fails.

Solve it by a call to `sync_blocks` after `generate`.

Tree-SHA512: e21b01a9e8c90bd6a3aad290c97cc4866ab384e22797b318eed55ae2767512203597d3a184b23ad5a3fe76bdbb8a3d5c51e097d56b160232851164434059ff23

Backport of Core PR13304
https://github.com/bitcoin/bitcoin/pull/13304/

Test Plan:

test_runner.py wallet_listreceivedby

Reviewers: deadalnix, Fabien, jasonbcox, O1 Bitcoin ABC, #bitcoin_abc

Reviewed By: deadalnix, O1 Bitcoin ABC, #bitcoin_abc

Differential Revision: https://reviews.bitcoinabc.org/D4164