-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
fix: error handling with retries when waiting for receipt #9650
Conversation
@klkvr do you think this makes sense in context of #9636 (comment) ? |
I don't think this will address the issue as we're hitting error in different arm #9636 (comment) we could consider retrying several fatal errors instead of immidiately returning here foundry/crates/script/src/receipts.rs Lines 51 to 52 in b4a4733
|
yeah, that's what I wanted with https://github.com/foundry-rs/foundry/pull/9650/files#diff-40b142bf1cc0e034c56533fad30c71161b2cc0b4dd4d6a72468e0649e3c7002dR61-R66 what do I miss? thank you! |
ah missed that second branch has changed too lgtm but I'd keep |
please recheck |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seems appropriate to retry this a few times
Motivation
closes #9636
Solution
Retry
utility. addContinue
variant to preserve number of retries (without decrementing)Continue
on watcher timeout err if tx is still known to the node (won't count as a retry). For all other errs useRetry