Skip to content

engine: Restrict no-reorg to the prefix of known finalized#786

Merged
fjl merged 1 commit intoethereum:mainfrom
mkalinin:reorg-not-finalized
Apr 23, 2026
Merged

engine: Restrict no-reorg to the prefix of known finalized#786
fjl merged 1 commit intoethereum:mainfrom
mkalinin:reorg-not-finalized

Conversation

@mkalinin
Copy link
Copy Markdown
Contributor

This PR is an alternative to #770 and introduces the following changes:

  • Restricts a no-reorg optimization to an ancestor of the latest finalized block known to the EL client
  • Introduces a -38006: Too deep reorg error to handle the case when EL client cannot do a reorg due to the depth being beyond client's reorg capability. This depth is supposed to be implementation specific

For detail see discussion in #770 thread.

@fjl fjl merged commit 4db2ff9 into ethereum:main Apr 23, 2026
5 checks passed
@potuz
Copy link
Copy Markdown
Contributor

potuz commented Apr 24, 2026

Just a comment to leave somewhere, but I think these types of reorgs going back on the canonical chain can only happen up to the "Justified" hash instead of the finalized one, eg. most validators are malicious and start voting on top of the justified root but empty.

jihoonsong added a commit to jihoonsong/execution-apis that referenced this pull request Apr 24, 2026
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