Skip to content

Conversation

@Galoretka
Copy link

Motivation

Invalid message for InvalidPayloadAttributes
In impl From for RpcErrorMetadata branch RpcErr::InvalidPayloadAttributes(data) sets

message:Invalid forkchoice state”.to_string(),

which contradicts the variant itself (InvalidPayloadAttributes) and the adjacent InvalidForkChoiceState.

Description

The InvalidPayloadAttributes RpcErr variant was incorrectly mapped to the "Invalid forkchoice state" message while keeping the -38003 error code. This change aligns the message with the Engine API specification ("Invalid payload attributes") and avoids confusing it with InvalidForkChoiceState errors, without altering error codes or behavior in the surrounding validation logic.

@Galoretka Galoretka requested a review from a team as a code owner December 22, 2025 15:37
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.

1 participant