Skip to content

Optimistically import any post-merge block - #2844

Merged
djrtwo merged 3 commits into
ethereum:devfrom
sigp:opt-import
Mar 3, 2022
Merged

Optimistically import any post-merge block#2844
djrtwo merged 3 commits into
ethereum:devfrom
sigp:opt-import

Conversation

@paulhauner

Copy link
Copy Markdown
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.

Comment thread sync/optimistic.md

@mkalinin mkalinin left a comment

Copy link
Copy Markdown
Contributor

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