mirror of
https://github.com/tornadocash/tornado-relayer.git
synced 2024-10-01 08:25:37 -04:00
fix low nonce bug
This commit is contained in:
parent
42f67f2782
commit
0dd0823423
@ -152,7 +152,8 @@ async function sendTx(tx, done, retryAttempt = 1) {
|
|||||||
}).on('error', async function(e){
|
}).on('error', async function(e){
|
||||||
console.log('error', e.message)
|
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.'
|
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')
|
console.log('nonce too low, retrying')
|
||||||
if(retryAttempt <= 10) {
|
if(retryAttempt <= 10) {
|
||||||
retryAttempt++
|
retryAttempt++
|
||||||
|
Loading…
Reference in New Issue
Block a user