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

Fixes API To Only Return Canonical Blocks #11221

Merged
merged 5 commits into from
Aug 15, 2022

Conversation

nisdas
Copy link
Member

@nisdas nisdas commented Aug 15, 2022

What type of PR is this?

Bug Fix

What does this PR do? Why is it needed?

If we only have a single block of a particular slot saved in our database, we skip our canonical check. This allows non-canonical blocks to be returned from our API endpoint. This PR patches the problem by performing canonical checks on all blocks retrieved from our database. This also adds in some regression test cases for this particular instance.

Which issues(s) does this PR fix?

Fixes #11218

Other notes for review

@nisdas nisdas requested a review from a team as a code owner August 15, 2022 09:44
@prylabs-bulldozer prylabs-bulldozer bot merged commit 65b5c43 into develop Aug 15, 2022
@delete-merged-branch delete-merged-branch bot deleted the fixNonCanonicalBlocks branch August 15, 2022 15:48
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.

[Prater] /eth/v2/beacon/blocks route returns non-canonical blocks
2 participants