sleep util
This commit is contained in:
parent
3f9b0ed499
commit
475a1ccf26
6
utils.js
6
utils.js
@ -78,4 +78,8 @@ function isValidProof(proof) {
|
|||||||
return { valid: true }
|
return { valid: true }
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = { fetchGasPrice, isValidProof }
|
function sleep(ms) {
|
||||||
|
return new Promise(resolve => setTimeout(resolve, ms))
|
||||||
|
}
|
||||||
|
|
||||||
|
module.exports = { fetchGasPrice, isValidProof, sleep }
|
||||||
|
Loading…
Reference in New Issue
Block a user