Skip to content

Commit

Permalink
Adds maxAttempts = 5 value.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremy-then committed Dec 11, 2023
1 parent 8b7cc0a commit 42083ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ const waitForBitcoinTxToBeInMempool = async (btcTxHelper, btcTxHash) => {
* @param {BtcTransactionHelper} btcTxHelper
* @returns {Promise<boolean>}
*/
const waitForBitcoinMempoolToGetTxs = async (btcTxHelper, maxAttempts, checkEveryMilliseconds = 1000) => {
const waitForBitcoinMempoolToGetTxs = async (btcTxHelper, maxAttempts = 5, checkEveryMilliseconds = 1000) => {

const initialBitcoinMempoolSize = (await getBitcoinMempool(btcTxHelper)).length;

Expand Down

0 comments on commit 42083ae

Please sign in to comment.