Skip to content

execution/engineapi: reject engine_getBlobsV1 post-osaka#21857

Open
Sahil-4555 wants to merge 5 commits into
erigontech:mainfrom
Sahil-4555:fix/engineapi-reject-getblobsv1-post-osaka
Open

execution/engineapi: reject engine_getBlobsV1 post-osaka#21857
Sahil-4555 wants to merge 5 commits into
erigontech:mainfrom
Sahil-4555:fix/engineapi-reject-getblobsv1-post-osaka

Conversation

@Sahil-4555

@Sahil-4555 Sahil-4555 commented Jun 17, 2026

Copy link
Copy Markdown
Collaborator

According to the Engine API specifications, after the activation of the Osaka fork on the network we should no longer support the engine_getBlobsV1 method and it should return the -38005: Unsupported fork error.

To deal with this, I have added an additional check in GetBlobsV1 of EngineServer to check whether the current canonical head block’s timestamp has crossed the Osaka activation time or not. If active we are returning the UnsupportedForkError directly.

Before, even after Osaka activation, calling engine_getBlobsV1 would still query the txpool and try to return single-element KZG proofs - that's the wrong behaviour post-Osaka where cell proofs (128 elements) are the norm. Now it immediately rejects with the required spec error.

Add new test TestGetBlobsV1PostOsakaRejection to check GetBlobsV1 correctly returns -38005: Unsupported fork when Osaka is active.

@yperbasis yperbasis added this to the 3.8.0 milestone Jun 17, 2026
@yperbasis yperbasis modified the milestones: 3.8.0, 3.7.0 Jul 10, 2026
@yperbasis
yperbasis requested a review from Copilot July 10, 2026 07:49

Copilot AI 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.

Pull request overview

Updates Engine API blob-fetch endpoints to follow Osaka fork rules by rejecting engine_getBlobsV1 once Osaka is active and by short-circuiting engine_getBlobsV2/engine_getBlobsV3 to return null before Osaka to avoid unnecessary txpool work and log spam.

Changes:

  • Add Osaka fork gating to GetBlobsV1, returning -38005 Unsupported fork post-Osaka.
  • Add pre-Osaka early-returns for GetBlobsV2 and GetBlobsV3 (return null without querying the txpool).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread execution/engineapi/engine_api_methods.go Outdated
Comment thread execution/engineapi/engine_api_methods.go Outdated
Comment thread execution/engineapi/engine_api_methods.go
@Sahil-4555
Sahil-4555 force-pushed the fix/engineapi-reject-getblobsv1-post-osaka branch from ad54d0a to 08d9fdc Compare July 10, 2026 09:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants