lntest: add method AssertTxnsNotInMempool

So we only need to do one `GetRawMempool` lookup when checking the
exclusion of multiple txns.
This commit is contained in:
yyforyongyu committed 2024-10-17 07:34:40 +08:00
1 parent e560e00aeb
commit bf8ae68eea
2 files changed
+29 -3

No files matched your search

+1 -3
View File
@@ -112,9 +112,7 @@ func (h *HarnessTest) MineBlocksAndAssertNumTxes(num uint32,
}
// Make sure the mempool has been updated.
for _, txid := range txids {
h.miner.AssertTxNotInMempool(txid)
}
h.miner.AssertTxnsNotInMempool(txids)
// Finally, make sure all the active nodes are synced.
bestBlock := blocks[len(blocks)-1]