Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug🐛: "Account sequence mismatch" after any tx have been sent #96

Open
Piratnewtime opened this issue Jan 9, 2024 · 1 comment
Open
Labels
bug Something isn't working

Comments

@Piratnewtime
Copy link

Piratnewtime commented Jan 9, 2024

Describe the bug

The problem appears when a user has already sent any transaction to the node, because after that action every new simulations of transactions will be failed with a error: rpc error: code = Unknown desc = account sequence mismatch, expected 0, got 1: incorrect account sequence [cosmos/[email protected]/x/auth/ante/sigverify.go:265] With gas wanted: '0' and gas used: '39388' : unknown request

The problem will not occur wallets that didn't send transactions after time when the node have started. That means to solve a blocked wallet you need to restart the node. That looks confusing because the node returns a correct sequence, but can't verify new transactions.

Describe the steps to reproduce the behavior

  1. Use any wallet to send any transaction to a node
  2. Build a new tx, you will see a new sequence which is correct
  3. Simulate that new tx on the same node
  4. Fail: cought a problem with your sequence
  5. ...
  6. Solution: Restart the node
  7. Try to simulate that tx again
  8. Success: got an estimated gas of the tx

Expected behavior

A node should update a sequence in memory (RAM?) after every new transaction and returning value of sequence must be equal to the value that is using when the node is verifying transactions.

Operating environment

OS: Ubuntu 22.04
Node: v1.0.0
Cosmos SDK: v0.45.16

@Piratnewtime Piratnewtime added the bug Something isn't working label Jan 9, 2024
@tombeynon
Copy link

Thanks for raising - this has been causing a number of issues with REStake (both users and validators) and I was wondering what the issue was.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants