chainlink icon indicating copy to clipboard operation
chainlink copied to clipboard

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

Open huangzhen1997 opened this issue 1 year ago • 1 comments

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 avatar Aug 26 '24 15:08 huangzhen1997