Fixed incorrect nonce checking inequality

This commit is contained in:
Kirill Fedoseev 2019-11-29 23:01:13 +03:00
parent 3d8623e05d
commit d64ec4e24e
1 changed files with 1 additions and 1 deletions

View File

@ -291,7 +291,7 @@ async function consumer(msg) {
} }
const account = await getAccount(from) const account = await getAccount(from)
if (nonce > account.sequence) { if (nonce < account.sequence) {
logger.debug('Tx has been already sent') logger.debug('Tx has been already sent')
logger.info('Acking message (skipped nonce)') logger.info('Acking message (skipped nonce)')
channel.ack(msg) channel.ack(msg)