shardeum / bug-reporting

60 stars 35 forks source link

BUG: Transaction nonce is less than the account nonce & possible Fix #939

Open imv007 opened 1 week ago

imv007 commented 1 week ago
What is the issue?

:red_circle: Transaction nonce is less than the account nonce.. :red_circle:

What impact does the issue have?

:red_circle: From CLI will not stake as transaction nonce is out of sync with blockchain. :red_circle:

How to reproduce the issue?

:red_circle: Explain in as much detail as possible to help reproduce the bug:

When you unstake and try to stake again via dashboard and if you get RPC error then switch to CLI and try the process again.
If you get the RPC error on the terminal you will notice it will show : Transaction nonce is less than the account nonce error on console screen.

:red_circle:

:red_circle: Possible FIX for cli version. :red_circle:

Fetch the current nonce from explorer before generating and signing the transaction will fix this issue.