diff --git a/test/functional/rpc_gettxspendingprevout.py b/test/functional/rpc_gettxspendingprevout.py index 04bc4237d05..972056e627b 100755 --- a/test/functional/rpc_gettxspendingprevout.py +++ b/test/functional/rpc_gettxspendingprevout.py @@ -76,6 +76,9 @@ class GetTxSpendingPrevoutTest(BitcoinTestFramework): txs = [txA, txB, txC, txD, txE, txF, txG, txH] txidA, txidB, txidC, txidD, txidE, txidF, txidG, txidH = [tx["txid"] for tx in txs] + self.sync_mempools() + self.wait_until(lambda: node0.getindexinfo()["txospenderindex"]["synced"]) + self.wait_until(lambda: node1.getindexinfo()["txospenderindex"]["synced"]) mempool = node0.getrawmempool() assert_equal(len(mempool), 8) for tx in txs: