sleep util

This commit is contained in:
Alexey 2019-07-23 19:43:24 +03:00
parent 3f9b0ed499
commit 475a1ccf26
1 changed files with 5 additions and 1 deletions

View File

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