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

Dropped transactions are never retired in our Wallet #21051

Closed
bbondy opened this issue Feb 11, 2022 · 9 comments
Closed

Dropped transactions are never retired in our Wallet #21051

bbondy opened this issue Feb 11, 2022 · 9 comments
Assignees
Labels
closed/invalid feature/web3/wallet Integrating Ethereum+ wallet support OS/Android Fixes related to Android browser functionality OS/Desktop priority/P3 The next thing for us to work on. It'll ride the trains.

Comments

@bbondy
Copy link
Member

bbondy commented Feb 11, 2022

During a Zoom call with a user here:
https://community.brave.com/t/unable-to-send-funds-out-of-brave-wallet/335479/20

We seen that he had a transaction in his transaction list that was "Pending" but on Etherscan it was "Dropped".
Our UI keeps it at Pending because it never gets Confirmed.
A dropped transaction can happen when the fees are too low and miners need room in their mempool. They will never be re-picked up unless the transaction is re-broadcast.
https://info.etherscan.com/transaction-dropped-replaced/

This suggests we should have a way to re-broadcast a transaction. When that option is selected, our panel should also have an in UI message that gas fees are configured too low and will likely be dropped. That message can be given even for new transactions when a user manually edits their gas fees to something that doesn't make sense vs the current gas values.

Also we should surface the pending transactions more because they can be hard to find for users. All future transactions will remain pending if one is pending because the nonce must be sequential. E.g. something like if there's a new transaction being made and there's an old pending one older than a day, we should warn and ask if the user would like to remove that transaction locally.

@bbondy bbondy added OS/Android Fixes related to Android browser functionality OS/Desktop labels Feb 11, 2022
@bbondy bbondy added feature/web3/wallet Integrating Ethereum+ wallet support priority/P3 The next thing for us to work on. It'll ride the trains. labels Feb 11, 2022
@jamesmudgett
Copy link

jamesmudgett commented Feb 15, 2022

eb0d0a64fd57526339bc2537d3503788af609e09

@rmcfadden3

We need to find a better way to communicate the following:

  • A pending transaction that is not going through (gas issue) is likely to prevent future send transactions from going through.
  • The failing "pending" transaction needs to be cancelled before a new one may be sent, or it will need to be completed.

There are a couple of approaches:

  1. A new transaction can be "forced" but will require that we perform some things in an automatic way and this will probably not be ideal.
  2. Update the messaging and link to pending list, something like, "We have detected a pending transaction that has not yet completed and will prevent this transaction from executing. View pending transactions"

@jamesmudgett
Copy link

Will need to also query that the "Submitted" transaction are > 1day old (24hr) before showing this message
Screen Shot 2022-02-24 at 11 50 06 AM

@jamesmudgett
Copy link

@rmcfadden3 can you check over message formatting, and provide any edits?

@bbondy
Copy link
Member Author

bbondy commented Feb 24, 2022

Will need to also query that the "Submitted" transaction are > 1day old (24hr) before showing this message

To clarify: If any "Submitted" transaction exists > 1 day old.

@rmcfadden3
Copy link

@jamesmudgett — per our Zoom just now, here's some proposed copy for that panel message:

Transaction backlog

You're attempting to start a new transaction while you have previously submitted transactions that have not been processed. This incomplete transaction will block any new ones from being submitted. Learn more.

[] Clear & replace the incomplete transaction(s)

@bbondy
Copy link
Member Author

bbondy commented Feb 25, 2022

Pls say confirmed instead of processed

@rmcfadden3
Copy link

@jamesmudgett — per @bbondy, here's updated copy:

Transaction backlog

You're attempting to start a new transaction while you have previously submitted transactions that have not been confirmed. This will block any new ones from being submitted. Learn more.

[] Clear & replace the incomplete transaction(s)

@simoarpe
Copy link

simoarpe commented Nov 1, 2023

@bbondy , @Douglashdaniel is this issue still open?
Last comment in brave/brave-core#12439 states the issue has been addressed.

Context: I was checking the Android counterpart #21305.

@Douglashdaniel
Copy link

@github-project-automation github-project-automation bot moved this from In Review to Done in Web3 Nov 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed/invalid feature/web3/wallet Integrating Ethereum+ wallet support OS/Android Fixes related to Android browser functionality OS/Desktop priority/P3 The next thing for us to work on. It'll ride the trains.
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

5 participants