mirror of
https://github.com/tornadocash/tornado-relayer.git
synced 2025-08-15 17:40:18 -04:00
sleep util
This commit is contained in:
parent
3f9b0ed499
commit
475a1ccf26
1 changed files with 5 additions and 1 deletions
6
utils.js
6
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 }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue