-
Notifications
You must be signed in to change notification settings - Fork 5k
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
When checking balance/nonce, always query at latest
block.
#945
Comments
This may not be happening anymore , so needs verification. |
Since balance & nonce are fetched on new block by A further complication is that we're on the 1.1.x version, while the published npm package is at 2.2.0, which broke the API in a way we haven't migrated to from metamask-plugin. The Our options for dealing with this problem, from easiest to most correct:
In addition, I think we should:
Thoughts or opinions, @kumavis? |
Fun news: Parity now throws a descriptive error for this behavior, and geth is working on it. |
We're going with a fourth option: Bring in the old eth-store as a local dependency for now, and monkey patch as needed. |
## **Description** This PR removes `long-running` Snap endowment/permission. Snaps team have decided to remove this endowment because of its unpredictable security concerns around running Snaps indefinitely. This endowment is removed in favor of the new endowments that will be focused on solving certain use cases that require snap to be running for more time than default. ## **Related issues** _Fixes [#945](MetaMask/snaps#945 ## **Related PR** MetaMask/snaps#1751 (**required**) MetaMask/metamask-docs#919 ## **Pre-merge author checklist** - [ ] I’ve followed [MetaMask Coding Standards](https://github.com/MetaMask/metamask-extension/blob/develop/.github/guidelines/CODING_GUIDELINES.md). - [ ] I've clearly explained: - [ ] What problem this PR is solving. - [ ] How this problem was solved. - [ ] How reviewers can test my changes. - [ ] I’ve indicated what issue this PR is linked to: Fixes #??? - [ ] I’ve included tests if applicable. - [ ] I’ve documented any added code. - [ ] I’ve applied the right labels on the PR (see [labeling guidelines](https://github.com/MetaMask/metamask-extension/blob/develop/.github/guidelines/LABELING_GUIDELINES.md)). - [ ] I’ve properly set the pull request status: - [ ] In case it's not yet "ready for review", I've set it to "draft". - [ ] In case it's "ready for review", I've changed it from "draft" to "non-draft". ## **Pre-merge reviewer checklist** - [ ] I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed). - [ ] I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.
We're currently querying at last block number we're aware of, but when hitting infura, which is a load balanced cluster, when there is a slight de-synchronization, we can hit a node that hasn't heard about that block yet!
In this case, neither Parity nor Geth replies with much grace:
Geth:
Request
response:
Parity
Request
Response:
So geth returns a mis-formatted value, and Parity acts like you aren't in archive mode.
We should submit these bugs to those client providers, but also we should just be getting balance & nonce at
latest
.The text was updated successfully, but these errors were encountered: