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

Catch 'header not found' string in L2BlockRefByLabel #11759

Merged
merged 1 commit into from
Sep 6, 2024

Conversation

emhane
Copy link
Contributor

@emhane emhane commented Sep 5, 2024

Description

Adds 'header not found' to list of EL RPC errors caught by L2BlockRefByLabel.

Tests

Please describe any tests you've added. If you've added no tests, or left important behavior untested, please explain why not.

Additional context

Geth sometimes returns 'header not found' and sometimes 'block not found'. The distinction isn't apparent. Reth has defaulted to returning 'header not found', which better describes the root of the error in the reth code.

Metadata

Copy link
Contributor

@tynes tynes left a comment

Choose a reason for hiding this comment

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

This looks good to me! Thank you @emhane

@tynes tynes added this pull request to the merge queue Sep 6, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to no response for status checks Sep 6, 2024
@tynes tynes added this pull request to the merge queue Sep 6, 2024
Merged via the queue into ethereum-optimism:develop with commit 75c7326 Sep 6, 2024
55 checks passed
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