itest+lntest: fix onchain tests

This commit is contained in:
yyforyongyu committed 2024-04-19 21:33:37 +08:00
1 parent 9c34eb7a56
commit d4de6dd236
2 files changed
+30 -20

No files matched your search

-4
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) {