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

Bci 3621/try new estimation for insufficient fund error instead of retry #14234

Conversation

huangzhen1997
Copy link
Contributor

@huangzhen1997 huangzhen1997 commented Aug 26, 2024

Jira BCI-3621

Description
During gas spike the TXM tried to broadcast an initial attempt with a high gas price. Given the high default limit that CCIP uses (100m) the total cost of the attempt reached a very large amount (~4ETH) which resulted in InsufficientFunds error.

Solution:
Instead of retrying with the same attempt, use tryAgainWithNewEstimation to replace the existing attempt with a new one and return. Don’t call handleInProgressTx right away and just return as we need some time for the gas spike to pass.

Acceptance Criteria
Resolve gas spike issue and backward compatible.

@huangzhen1997 huangzhen1997 marked this pull request as ready for review August 27, 2024 18:54
@huangzhen1997 huangzhen1997 requested review from a team as code owners August 27, 2024 18:54
@huangzhen1997 huangzhen1997 requested review from samsondav and removed request for a team August 27, 2024 18:54
@huangzhen1997 huangzhen1997 requested a review from dimriou August 29, 2024 15:00
amit-momin
amit-momin previously approved these changes Aug 29, 2024
@dimriou dimriou added this pull request to the merge queue Sep 3, 2024
Merged via the queue into develop with commit a234e14 Sep 3, 2024
135 checks passed
@dimriou dimriou deleted the BCI-3621/try-new-estimation-for-insufficient-fund-error-instead-of-retry branch September 3, 2024 20:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants