-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
engineapi: Add pectra engine api changes #10963
Conversation
@@ -570,20 +574,23 @@ func (s *EngineServer) forkchoiceUpdated(ctx context.Context, forkchoiceState *e | |||
}, nil | |||
} | |||
|
|||
func (s *EngineServer) getPayloadBodiesByHash(ctx context.Context, request []libcommon.Hash, _ clparams.StateVersion) ([]*engine_types.ExecutionPayloadBodyV1, error) { | |||
func (s *EngineServer) getPayloadBodiesByHash(ctx context.Context, request []libcommon.Hash, version clparams.StateVersion) ([]*engine_types.ExecutionPayloadBody, error) { | |||
if len(request) > 1024 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it in the spec somewhere?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, see point 3 at https://github.com/ethereum/execution-apis/blob/main/src/engine/shanghai.md#specification-3
It does say "The call MUST return -38004: Too large request
error if the requested range is too large" with a subjective definition of "too large"
Cherry pick #10963 Co-authored-by: Somnath <snb895@outlook.com>
Cherry pick #10963 Co-authored-by: Somnath <snb895@outlook.com>
see https://github.com/ethereum/execution-apis/blob/main/src/engine/prague.md