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

Optimistically import any post-merge block #2844

Merged
merged 3 commits into from
Mar 3, 2022
Merged

Conversation

paulhauner
Copy link
Contributor

This PR implements a suggestion by @mkalinin to allow optimistic import of any post-merge block.

A post-merge block is any block where the parent block has a non-empty ExecutionPayload.

The fork choice poisoning attack relies upon the ability to reliably send all execution engines into a syncing state. This is only possible on the merge block, since that block can reference a junk payload.parent_hash. So, it makes sense to only apply these optimistic-import restrictions to the merge block (and not their innocent descendants).

This PR is an improvement since it avoids rejecting valid blocks in some scenarios where it is safe to (optimistically) import them.

This PR succeeds #2841 since it is a simpler and more general solution.

Copy link
Collaborator

@mkalinin mkalinin left a comment

Choose a reason for hiding this comment

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

LGTM 👍

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