lntest: wait for mempool update after mining txns

This commit is contained in:
yyforyongyu 2024-06-03 20:37:04 +08:00 committed by Oliver Gugger
parent a5c04bbd14
commit 55452f64e8
No known key found for this signature in database
GPG Key ID: 8E4256593F177720

View File

@ -1778,6 +1778,11 @@ func (h *HarnessTest) MineBlocksAndAssertNumTxes(num uint32,
h.Miner.AssertTxInBlock(blocks[0], txid)
}
// Make sure the mempool has been updated.
for _, txid := range txids {
h.Miner.AssertTxNotInMempool(*txid)
}
// Finally, make sure all the active nodes are synced.
bestBlock := blocks[len(blocks)-1]
h.AssertActiveNodesSyncedTo(bestBlock)