Skip to content

engine: add -38005 error codes in engine_newPayloadV2, engine_getPayloadV2 and engine_forkchoiceUpdatedV2 openrpc methods#780

Open
swastik7805 wants to merge 1 commit intoethereum:mainfrom
swastik7805:engine/error-codes
Open

engine: add -38005 error codes in engine_newPayloadV2, engine_getPayloadV2 and engine_forkchoiceUpdatedV2 openrpc methods#780
swastik7805 wants to merge 1 commit intoethereum:mainfrom
swastik7805:engine/error-codes

Conversation

@swastik7805
Copy link
Copy Markdown

Closes #776

Fix: Add -38005 Error Code to V2 Engine Method Specs

Problem

engine_forkchoiceUpdatedV2, engine_newPayloadV2, and engine_getPayloadV2 are missing the -38005 (Unsupported fork) error declaration in their OpenRPC YAML definitions.

As Per cancun.md,
these methods must return -38005 when the payload or payloadAttributes timestamp is >= the Cancun activation timestamp. The Markdown spec is correct but the YAML schema does not reflect this.

Changes

  • forkchoice.yaml — added -38005 to engine_forkchoiceUpdatedV2
  • payload.yaml — added -38005 to engine_newPayloadV2
  • payload.yaml — added -38005 to engine_getPayloadV2

Fix

errors:
  - code: -38005
    message: Unsupported fork

References

@MysticRyuujin please review

@swastik7805 swastik7805 changed the title engine: add '-38005' error codes in engine_newPayloadV2, engine_getPayloadV2 and engine_forkchoiceUpdatedV2 openrpc methods engine: add -38005 error codes in engine_newPayloadV2, engine_getPayloadV2 and engine_forkchoiceUpdatedV2 openrpc methods Apr 7, 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.

Missed error code -38005 for multiple functions in the cancun fork

1 participant