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

Fall back to uncached getPaylod if first time outs #11404

Merged
merged 4 commits into from
Sep 8, 2022

Conversation

terencechain
Copy link
Member

Motivated from #11399

If the cached getPayload call to execution client times out, it may be wiser to give it a second try instead of failing block on the spot

case err == nil:
warnIfFeeRecipientDiffers(payload, feeRecipient)
return payload, nil
case errors.Is(err, context.Canceled) || errors.Is(err, context.DeadlineExceeded):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

on context.Canceled we should abort anyway, this is passed by the calling function isn't it?

@terencechain terencechain self-assigned this Sep 5, 2022
@terencechain terencechain marked this pull request as draft September 6, 2022 18:28
@terencechain terencechain marked this pull request as ready for review September 7, 2022 15:08
@terencechain terencechain added Ready For Review A pull request ready for code review OK to merge and removed OK to merge labels Sep 7, 2022
@prylabs-bulldozer prylabs-bulldozer bot merged commit 78cbe4d into develop Sep 8, 2022
@delete-merged-branch delete-merged-branch bot deleted the getPayload-fallback branch September 8, 2022 14:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ready For Review A pull request ready for code review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants