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

Add GetPayloadResponse dataclass for get_payload API #3341

Merged
merged 1 commit into from
May 10, 2023

Conversation

hwwhww
Copy link
Contributor

@hwwhww hwwhww commented Apr 28, 2023

The stub get_blobs_and_kzg_commitments API was cleaned up by Engine API changes (ethereum/execution-apis#402). Now engine_getPayloadV3 returns multiple fields include blobsBundle.

For CL specs, changing the function signature means we have to deal with backward compatibility. IMO it is easier to define a GetPayloadResponse dataclass for different versions.

This PR adds GetPayloadResponse and BlobsBundle dataclasses that reflect the Engine API changes.

@hwwhww hwwhww requested a review from mkalinin April 28, 2023 15:29
Copy link
Contributor

@djrtwo djrtwo left a comment

Choose a reason for hiding this comment

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

This path makes sense to me (rather than modifying the function return signature)

@hwwhww hwwhww merged commit f7352d1 into dev May 10, 2023
@hwwhww hwwhww deleted the add-GetPayloadResponse branch May 10, 2023 15:34
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.

2 participants