Bug🐛: "Account sequence mismatch" after any tx have been sent
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
Research direction
Reproduce the failure by sending a transaction, simulating a subsequent transaction, and then restarting the node to confirm the workaround. Start by tracing account-sequence handling during simulation and verification around cosmos/cosmos-sdk@v0.45.16/x/auth/ante/sigverify.go:265. Done means a new simulation succeeds after a transaction without restarting the node, with the reported sequence matching the verifier.
Written by the indexing model from the issue text.
Description
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/cosmos-sdk@v0.45.16/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
- Use any wallet to send any transaction to a node
- Build a new tx, you will see a new sequence which is correct
- Simulate that new tx on the same node
- Fail: cought a problem with your sequence
- ...
- Solution: Restart the node
- Try to simulate that tx again
- 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
- Dominant language
- Go
- Stars
- 42
- Forks
- 16
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from AssetMantle/node
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
AssetMantle/node#110 ·
All issues in AssetMantle/node
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
crossplane/crossplane#7859 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
bazel-contrib/rules_go#4721 · 2 comments ·
-
needs-triage
Difficulty 1/5 Under an hour Newbie friendliness 92/100
-
bug carvel-triage
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
carvel-dev/kapp-controller#1861 ·
-
area/logging kind/bug
Difficulty 2/5 1-3 hours Newbie friendliness 86/100