diff --git a/utils.js b/utils.js index e626077..dd8e7d8 100644 --- a/utils.js +++ b/utils.js @@ -78,4 +78,8 @@ function isValidProof(proof) { return { valid: true } } -module.exports = { fetchGasPrice, isValidProof } +function sleep(ms) { + return new Promise(resolve => setTimeout(resolve, ms)) +} + +module.exports = { fetchGasPrice, isValidProof, sleep }