Skip to content

Commit

Permalink
Remove nonce update for the re-send case (#470)
Browse files Browse the repository at this point in the history
  • Loading branch information
akolotov authored Oct 8, 2020
1 parent 4efda98 commit 48752e8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions oracle/src/sender.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,10 @@ async function main({ msg, ackMsg, nackMsg, channel, scheduleForRetry, scheduleT
}
})

logger.debug('Updating nonce')
await updateNonce(nonce)
if (typeof nonce === 'number') {
logger.debug('Updating nonce')
await updateNonce(nonce)
}

if (failedTx.length) {
logger.info(`Sending ${failedTx.length} Failed Tx to Queue`)
Expand Down

0 comments on commit 48752e8

Please sign in to comment.