sleep util

This commit is contained in:
Alexey 2019-07-23 19:43:24 +03:00
parent 3f9b0ed499
commit 475a1ccf26

@ -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 }