diff --git a/lntest/harness_miner.go b/lntest/harness_miner.go index 0fbfc227e..cebaaaed6 100644 --- a/lntest/harness_miner.go +++ b/lntest/harness_miner.go @@ -212,8 +212,8 @@ func (h *HarnessTest) AssertTxInMempool(txid chainhash.Hash) *wire.MsgTx { // NOTE: this should be used after `AssertTxInMempool` to ensure the tx has // entered the mempool before. Otherwise it might give false positive and the // tx may enter the mempool after the check. -func (h *HarnessTest) AssertTxNotInMempool(txid chainhash.Hash) *wire.MsgTx { - return h.miner.AssertTxNotInMempool(txid) +func (h *HarnessTest) AssertTxNotInMempool(txid chainhash.Hash) { + h.miner.AssertTxNotInMempool(txid) } // AssertNumTxsInMempool polls until finding the desired number of transactions diff --git a/lntest/miner/miner.go b/lntest/miner/miner.go index a7b7ac2b0..35d49f33a 100644 --- a/lntest/miner/miner.go +++ b/lntest/miner/miner.go @@ -320,9 +320,7 @@ func (h *HarnessMiner) AssertTxInMempool(txid chainhash.Hash) *wire.MsgTx { // NOTE: this should be used after `AssertTxInMempool` to ensure the tx has // entered the mempool before. Otherwise it might give false positive and the // tx may enter the mempool after the check. -func (h *HarnessMiner) AssertTxNotInMempool(txid chainhash.Hash) *wire.MsgTx { - var msgTx *wire.MsgTx - +func (h *HarnessMiner) AssertTxNotInMempool(txid chainhash.Hash) { err := wait.NoError(func() error { // We require the RPC call to be succeeded and won't wait for // it as it's an unexpected behavior. @@ -340,8 +338,6 @@ func (h *HarnessMiner) AssertTxNotInMempool(txid chainhash.Hash) *wire.MsgTx { }, wait.MinerMempoolTimeout) require.NoError(h, err, "timeout checking tx not in mempool") - - return msgTx } // SendOutputsWithoutChange uses the miner to send the given outputs using the