mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-29 03:01:52 +01:00
lntest: remove unused return value
This commit is contained in:
parent
1aae94f17d
commit
56e05a3e1e
@ -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
|
// NOTE: this should be used after `AssertTxInMempool` to ensure the tx has
|
||||||
// entered the mempool before. Otherwise it might give false positive and the
|
// entered the mempool before. Otherwise it might give false positive and the
|
||||||
// tx may enter the mempool after the check.
|
// tx may enter the mempool after the check.
|
||||||
func (h *HarnessTest) AssertTxNotInMempool(txid chainhash.Hash) *wire.MsgTx {
|
func (h *HarnessTest) AssertTxNotInMempool(txid chainhash.Hash) {
|
||||||
return h.miner.AssertTxNotInMempool(txid)
|
h.miner.AssertTxNotInMempool(txid)
|
||||||
}
|
}
|
||||||
|
|
||||||
// AssertNumTxsInMempool polls until finding the desired number of transactions
|
// AssertNumTxsInMempool polls until finding the desired number of transactions
|
||||||
|
@ -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
|
// NOTE: this should be used after `AssertTxInMempool` to ensure the tx has
|
||||||
// entered the mempool before. Otherwise it might give false positive and the
|
// entered the mempool before. Otherwise it might give false positive and the
|
||||||
// tx may enter the mempool after the check.
|
// tx may enter the mempool after the check.
|
||||||
func (h *HarnessMiner) AssertTxNotInMempool(txid chainhash.Hash) *wire.MsgTx {
|
func (h *HarnessMiner) AssertTxNotInMempool(txid chainhash.Hash) {
|
||||||
var msgTx *wire.MsgTx
|
|
||||||
|
|
||||||
err := wait.NoError(func() error {
|
err := wait.NoError(func() error {
|
||||||
// We require the RPC call to be succeeded and won't wait for
|
// We require the RPC call to be succeeded and won't wait for
|
||||||
// it as it's an unexpected behavior.
|
// it as it's an unexpected behavior.
|
||||||
@ -340,8 +338,6 @@ func (h *HarnessMiner) AssertTxNotInMempool(txid chainhash.Hash) *wire.MsgTx {
|
|||||||
}, wait.MinerMempoolTimeout)
|
}, wait.MinerMempoolTimeout)
|
||||||
|
|
||||||
require.NoError(h, err, "timeout checking tx not in mempool")
|
require.NoError(h, err, "timeout checking tx not in mempool")
|
||||||
|
|
||||||
return msgTx
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// SendOutputsWithoutChange uses the miner to send the given outputs using the
|
// SendOutputsWithoutChange uses the miner to send the given outputs using the
|
||||||
|
Loading…
x
Reference in New Issue
Block a user