mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-04 18:22:57 +02:00
test: Wait for txospender index to be synced in rpc_gettxspendingprevout
Each node's txospender index needs to catch up with the existing chain before the tests will work.
This commit is contained in:
@@ -77,6 +77,8 @@ class GetTxSpendingPrevoutTest(BitcoinTestFramework):
|
|||||||
txidA, txidB, txidC, txidD, txidE, txidF, txidG, txidH = [tx["txid"] for tx in txs]
|
txidA, txidB, txidC, txidD, txidE, txidF, txidG, txidH = [tx["txid"] for tx in txs]
|
||||||
|
|
||||||
self.sync_mempools()
|
self.sync_mempools()
|
||||||
|
self.wait_until(lambda: node0.getindexinfo()["txospenderindex"]["synced"])
|
||||||
|
self.wait_until(lambda: node1.getindexinfo()["txospenderindex"]["synced"])
|
||||||
mempool = node0.getrawmempool()
|
mempool = node0.getrawmempool()
|
||||||
assert_equal(len(mempool), 8)
|
assert_equal(len(mempool), 8)
|
||||||
for tx in txs:
|
for tx in txs:
|
||||||
|
|||||||
Reference in New Issue
Block a user