itest+lntest: fix onchain tests

This commit is contained in:
yyforyongyu
2024-04-08 16:48:43 +08:00
parent 9c34eb7a56
commit d4de6dd236
2 changed files with 30 additions and 20 deletions

View File

@@ -323,10 +323,6 @@ func (h *HarnessMiner) AssertTxNotInMempool(txid chainhash.Hash) *wire.MsgTx {
// it as it's an unexpected behavior.
mempool := h.GetRawMempool()
if len(mempool) == 0 {
return fmt.Errorf("empty mempool")
}
for _, memTx := range mempool {
// Check the values are equal.
if txid.IsEqual(memTx) {