mirror of
https://github.com/tornadocash/tornado-relayer.git
synced 2025-08-02 19:36:25 -04:00
fix low nonce bug
This commit is contained in:
parent
42f67f2782
commit
0dd0823423
1 changed files with 2 additions and 1 deletions
|
@ -152,7 +152,8 @@ async function sendTx(tx, done, retryAttempt = 1) {
|
|||
}).on('error', async function(e){
|
||||
console.log('error', e.message)
|
||||
if(e.message === 'Returned error: Transaction gas price supplied is too low. There is another transaction with same nonce in the queue. Try increasing the gas price or incrementing the nonce.'
|
||||
|| e.message === 'Returned error: Transaction nonce is too low. Try incrementing the nonce.') {
|
||||
|| e.message === 'Returned error: Transaction nonce is too low. Try incrementing the nonce.'
|
||||
|| e.message === 'Returned error: nonce too low') {
|
||||
console.log('nonce too low, retrying')
|
||||
if(retryAttempt <= 10) {
|
||||
retryAttempt++
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue