test: Sync mempools after tx creation in rpc_gettxspendingprevout

The test will query information from the other nodes about mempool txs,
ensure that the txs are in their mempools beforehand.
This commit is contained in:
Ava Chow 2026-03-05 11:17:17 -08:00
parent ca45461ddb
commit 2db5c049bb

View File

@ -76,6 +76,7 @@ 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()
mempool = node0.getrawmempool()
assert_equal(len(mempool), 8)
for tx in txs: