diff --git a/lib/rsk-utils-legacy.js b/lib/rsk-utils-legacy.js index 4639d610..6a7c1cc6 100644 --- a/lib/rsk-utils-legacy.js +++ b/lib/rsk-utils-legacy.js @@ -26,7 +26,7 @@ var waitForSync = (rskClients) => { }); }; -var waitForBlock = (rskClient, blockNumber, waitTime = 200, maxAttempts = 600) => { +var waitForBlock = (rskClient, blockNumber, waitTime = 500, maxAttempts = 600) => { return new Promise((resolve, reject) => { var clearPoll; var attempts = 0; diff --git a/lib/rsk-utils.js b/lib/rsk-utils.js index 5de39e20..ae08034b 100644 --- a/lib/rsk-utils.js +++ b/lib/rsk-utils.js @@ -49,7 +49,7 @@ const waitForSync = async (rskTransactionHelpers) => { * @param {Number} maxAttempts defaults to 80 attempts by block. * @returns {Promise} the latest block number the same or greater than `blockNumber`. */ -const waitForBlock = (rskClient, blockNumber, waitTime = 200, maxAttempts = 80) => { +const waitForBlock = (rskClient, blockNumber, waitTime = 500, maxAttempts = 160) => { return new Promise((resolve, reject) => { let attempts = 1; let latestBlockNumber = -1;