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

Electra: exclude empty requests in requests list #14580

Merged
merged 25 commits into from
Oct 31, 2024

Conversation

james-prysm
Copy link
Contributor

@james-prysm james-prysm commented Oct 24, 2024

What type of PR is this?

Other

What does this PR do? Why is it needed?

we need to add in the first byte as the request type to the ssz serialized list of requests and avoid appending the list if it's empty.

Which issues(s) does this PR fix?

Fixes # ethereum/execution-apis#599

Other notes for review

Acknowledgements

  • I have read CONTRIBUTING.md.
  • I have made an appropriate entry to CHANGELOG.md.
  • I have added a description to this PR with sufficient context for reviewers to understand this PR.

@james-prysm james-prysm added the Electra electra hardfork label Oct 24, 2024
@james-prysm james-prysm marked this pull request as ready for review October 25, 2024 18:43
@james-prysm james-prysm requested a review from a team as a code owner October 25, 2024 18:43
@james-prysm james-prysm added the Blocked Blocked by research or external factors label Oct 25, 2024
beacon-chain/execution/engine_client_test.go Outdated Show resolved Hide resolved
proto/engine/v1/electra.go Outdated Show resolved Hide resolved
proto/engine/v1/electra.go Show resolved Hide resolved
proto/engine/v1/electra.go Outdated Show resolved Hide resolved
proto/engine/v1/electra.go Outdated Show resolved Hide resolved
proto/engine/v1/electra.go Outdated Show resolved Hide resolved
proto/engine/v1/electra_test.go Outdated Show resolved Hide resolved
proto/engine/v1/electra_test.go Outdated Show resolved Hide resolved
proto/engine/v1/electra.go Outdated Show resolved Hide resolved
}
prevTypeNum = requestType
switch requestType {
case DepositRequestType:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As before can we remove the cases from here and treat them in separate functions?

@james-prysm james-prysm added Ready For Review A pull request ready for code review and removed Blocked Blocked by research or external factors labels Oct 31, 2024
@james-prysm james-prysm enabled auto-merge October 31, 2024 18:41
@james-prysm james-prysm added this pull request to the merge queue Oct 31, 2024
Merged via the queue into develop with commit e6ffc07 Oct 31, 2024
18 checks passed
@james-prysm james-prysm deleted the execution-requests-serialization-changes branch October 31, 2024 19:19
@kasey kasey added the changelog/changed Changelog Section: Changed label Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog/changed Changelog Section: Changed Electra electra hardfork Ready For Review A pull request ready for code review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants