-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Update Empty requests list behaviour for Pectra-5 #12985
Conversation
This is 4/6 in the chain |
ae7113e
to
020b06c
Compare
6056a08
to
aa0622e
Compare
turbo/engineapi/engine_server.go
Outdated
} | ||
requests[i] = types.FlatRequest{Type: r, RequestData: executionRequests[i]} | ||
requests = make(types.FlatRequests, 0) | ||
for _, r := range executionRequests { |
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.
Please guard against the case when r
is empty
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 this bit of the spec implemented: "Elements of the list MUST be ordered by request_type in ascending order. Elements with empty request_data MUST be excluded from the list. If any element is out of order or has a length of 1-byte or shorter, client software MUST return -32602: Invalid params error."?
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.
No, here it doesn't throw the error. This was beneficial to run some early implementations of CLs, but I have made the change now to address the concern.
The updated EIP-7685 says requests with empty `request_data` should be dropped from `executionRequests` field in the API and ignored for hash calculation. See ethereum/EIPs#8989, ethereum/execution-apis#599 Issue board: #12401
The updated EIP-7685 says requests with empty `request_data` should be dropped from `executionRequests` field in the API and ignored for hash calculation. See ethereum/EIPs#8989, ethereum/execution-apis#599 Issue board: #12401 Cherry pick #12985
The updated EIP-7685 says requests with empty
request_data
should be dropped fromexecutionRequests
field in the API and ignored for hash calculation.See ethereum/EIPs#8989, ethereum/execution-apis#599
Issue board: #12401