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

Transactions reverted by chain reorganization still exist in Activity tab #10120

Closed
darcher-framework opened this issue Dec 25, 2020 · 3 comments
Labels
area-blocktracker area-transactions Sev3-low Low severity; minimal to no impact upon users stale issues and PRs marked as stale type-bug ux-enhancement

Comments

@darcher-framework
Copy link

Describe the bug
The bug resides on the transaction histories shown by MetaMask in Activity tab.
Due to the existence of chain reorganization, a mined transaction can still be reverted to pending transaction pool.
But MetaMask is not aware of such transaction revert and the transaction still has the status "successful".
This results in inconsistencies between what MetaMask shows to users and what the Ethereum world state really is on chain and may cause trouble to users since they see incorrect transaction histories.

Steps to reproduce (REQUIRED)
Steps to reproduce the behavior, libraries used with version number, and/or any setup information to easily reproduce:

  1. Using private chain cluster
  2. Send a transaction using MetaMask
  3. Mine block such that the transaction is executed. MetaMask showing the transaction succeeds now.
  4. Make chain reorganization happen, where imported side chain does not contain the transaction.
  5. The transaction will be put back to transaction pool
  6. Optionally we can drop the transaction by sending another one with same nonce but higher price
  7. MetaMask still shows the transaction is successful in Activity tab.

Expected behavior
When transaction is reverted due to chain reorganization, the record in Activity tab should also be updated showing the transaction is back to pending state.

Browser details (please complete the following information):

  • OS: MacOS
  • Browser: Chome 87
  • MetaMask Version: 8.0.10
@Gudahtt
Copy link
Member

Gudahtt commented Jan 19, 2021

We don't currently detect chain reorganizations (we have an issue tracking that feature here: MetaMask/eth-block-tracker#30 ). As such, we can't easily know when to check whether the status of a transaction has changed. Once our block tracker supports detecting chain reorganization, we should be able to support it here in the extension as well.

In the meantime, we should at least indicate to the user somehow that we don't know for sure whether any given transaction has succeeded. I'll bring this up with the design team for consideration in future designs.

@github-actions
Copy link
Contributor

This issue has been automatically marked as stale because it has not had recent activity in the last 90 days. It will be closed in 45 days if there is no further activity. The MetaMask team intends on reviewing this issue before close, and removing the stale label if it is still a bug. We welcome new comments on this issue. We do not intend on closing issues if they report bugs that are still reproducible. Thank you for your contributions.

@github-actions github-actions bot added the stale issues and PRs marked as stale label Jul 24, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Sep 7, 2023

This issue was closed because there has been no follow up activity in the last 45 days. If you feel this was closed in error, please reopen and provide evidence on the latest release of the extension. Thank you for your contributions.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Sep 7, 2023
@github-project-automation github-project-automation bot moved this to To be fixed in Bugs by severity Apr 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-blocktracker area-transactions Sev3-low Low severity; minimal to no impact upon users stale issues and PRs marked as stale type-bug ux-enhancement
Projects
None yet
Development

No branches or pull requests

3 participants