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

Problem with nonce calculation causes approved transactions to not be submitted #4086

Closed
danfinlay opened this issue Apr 25, 2018 · 5 comments
Labels
area-nonce Relating to tx nonce logic type-bug
Milestone

Comments

@danfinlay
Copy link
Contributor

May be related to #3881.
Also related to #3771.

We have seen a number of users who submit transactions that get stuck in the "Approved" state, but never submit to the network.

Looking at state logs, these transactions never progress past the user approval. The next step is nonce calculation, so it is likely the bug is in nonce calculation.

We have also seen some stack overflow bugs, and it has been suggested it could be related to this.

In all of the cases of this bug I have inspected, the problem begins after one transaction fails on submit in response to a server error, like Intrinsic gas too low or Nonce too low, so we may be able to test this with a transaction pool that includes a failed transaction as its most recent one.

We should also add a nonce calculation test for when the server throws an error in response to eth_getTransactionCount.

@danfinlay danfinlay added type-bug P1-asap area-nonce Relating to tx nonce logic labels Apr 25, 2018
@danfinlay danfinlay added this to the Sprint 04 milestone Apr 25, 2018
@frankiebee
Copy link
Contributor

frankiebee commented Apr 27, 2018

update:
anything failing during or after nonceLock = await this.nonceTracker.getNonceLock(fromAddress) in transaction controller#approveTransaction will not properly exit the try and just hang

@frankiebee
Copy link
Contributor

closing fixed by #4128 and #4131

@rhlsthrm
Copy link

Still having this nonce issue when connecting to a local blockchain that gets out of sync with Metamask.

@danfinlay
Copy link
Contributor Author

@rhlsthrm Please open a new issue with detailed reproduction steps.

@rhlsthrm
Copy link

#4361

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-nonce Relating to tx nonce logic type-bug
Projects
None yet
Development

No branches or pull requests

3 participants