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:
2 files changed
+29
-3
No files matched your search
@@ -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]
|
||||
|
||||
Reference in new issue
Block a user