diff --git a/lib/utils.js b/lib/utils.js index abb1b7dd..11ad8c70 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -242,6 +242,8 @@ const waitForBtcTxToBeInMempool = async (btcTxHelper, btcTxHash) => { console.debug(`The btc tx (${btcTxHash}) was already mined.`); return true; } + } else { + return true; } }; @@ -275,12 +277,11 @@ const waitForBtcMempoolToGetTxs = async (btcTxHelper) => { const initialBitcoinMempoolSize = (await getBitcoinMempool(btcTxHelper)).length; - console.debug(`The initial btc mempool size is ${initialBitcoinMempoolSize}.`); + console.debug(`[waitForBtcMempoolToGetTxs] The initial btc mempool size is ${initialBitcoinMempoolSize}.`); const getBitcoinMempoolSize = async () => { const bitcoinMempool = await getBitcoinMempool(btcTxHelper); const bitcoinMempoolSize = bitcoinMempool.length; - console.debug(`The btc mempool has ${bitcoinMempoolSize} txs.`); return bitcoinMempoolSize; };