2

We are using a private ehtereum chain on geth. It is mainly for the purpose of storing the values as part of transactions and distribute across our private network. However when we are sending multiple transactions, we are facing nonce issue like "Known transaction" or "Nonce too low"

Also we are signing the transactions off chain and are sending raw transactions. In this scenario, we are sometimes missing the nonce sequence and the transactions are being moved to queued status.

Do we have a option to tweak geth in such a way to remove the verification for nonce and process all the transactions that are sent to geth by making the validations other than the nonce.

Manoj Kumar
  • 312
  • 1
  • 10
  • 1
    Why do you need to send raw transaction from the same sender from multiple nodes? Having the same private key in different nodes can be problematic. – Ismael Jan 29 '19 at 04:06

2 Answers2

2

You can get passed these errors either by

  1. Waiting one transaction to be completed
  2. Maintain a nonce index and try new transaction with next nonce
niksmac
  • 9,673
  • 2
  • 40
  • 72
  • Our case is to send multiple transactions from different nodes and so we are using raw transactions
  • In case of nonce index, I tried to maintain a micro service and in case if the transaction fails with some error, then that nonce is not calculated by geth, but in micro service db, the nonce will be incremented.
  • Hence I am looking for a solution on how to change geth code to skip nonce validation

    – Manoj Kumar Jan 28 '19 at 06:01
  • There is no recommendation to alter geth itself, and id not recommend this. nonce is implemented for a reason. – niksmac Jan 28 '19 at 06:23
  • Yeah, nonce is used for transactions for a reason. Can we do something for transactions to be processed even if a nonce is skipped in middle. Say, if tx with nonce 1 is sent and then a tx with nonce 3 is sent, then the tx with nonce 3 should be processed correctly. – Manoj Kumar Jan 28 '19 at 07:15
  • This might help https://ethereum.stackexchange.com/q/27432/259 – niksmac Jan 28 '19 at 07:27
  • Or she how the nonce is managed here https://ethereum.stackexchange.com/a/8465/259 – niksmac Jan 28 '19 at 07:28