From 42083ae55ec351211cc5176cea64b44a813359c4 Mon Sep 17 00:00:00 2001 From: jeremy-then Date: Mon, 11 Dec 2023 19:52:48 -0400 Subject: [PATCH] Adds maxAttempts = 5 value. --- lib/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils.js b/lib/utils.js index 1172d5b6..5a9f65a4 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -273,7 +273,7 @@ const waitForBitcoinTxToBeInMempool = async (btcTxHelper, btcTxHash) => { * @param {BtcTransactionHelper} btcTxHelper * @returns {Promise} */ -const waitForBitcoinMempoolToGetTxs = async (btcTxHelper, maxAttempts, checkEveryMilliseconds = 1000) => { +const waitForBitcoinMempoolToGetTxs = async (btcTxHelper, maxAttempts = 5, checkEveryMilliseconds = 1000) => { const initialBitcoinMempoolSize = (await getBitcoinMempool(btcTxHelper)).length;