Skip to content
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

Merged
merged 3 commits into from
Jul 3, 2024
Merged

Conversation

somnathb1
Copy link
Contributor

@somnathb1 somnathb1 commented Jul 1, 2024

@somnathb1 somnathb1 added the pectra The Prague/Electra protocol upgrade label Jul 1, 2024
@@ -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 {
Copy link
Member

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?

Copy link
Contributor Author

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"

@somnathb1 somnathb1 enabled auto-merge (squash) July 3, 2024 10:58
@somnathb1 somnathb1 merged commit ee6ed6c into main Jul 3, 2024
10 checks passed
@somnathb1 somnathb1 deleted the som/pectra_engine_api branch July 3, 2024 11:24
yperbasis added a commit that referenced this pull request Oct 2, 2024
Cherry pick  #10963

Co-authored-by: Somnath <snb895@outlook.com>
AskAlexSharov pushed a commit that referenced this pull request Oct 21, 2024
Cherry pick  #10963

Co-authored-by: Somnath <snb895@outlook.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pectra The Prague/Electra protocol upgrade
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants