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

Refactor ExecutionPayloadResult #8702

Conversation

StefanBratanov
Copy link
Contributor

@StefanBratanov StefanBratanov commented Oct 10, 2024

PR Description

It is a bit inconsistent to have the GetPayloadResponse fields separate for the local flow but store the whole GetPayloadResponse in FallbackData for the builder flow.

The refactor will also help to make it easier when new fields are added to GetPayloadResponse.

Fixed Issue(s)

N/A

Documentation

  • I thought about documentation and added the doc-change-required label to this PR if updates are required.

Changelog

  • I thought about adding a changelog entry, and added one if I deemed necessary.

@StefanBratanov StefanBratanov force-pushed the refactor_execution_payload_result branch from 86b0076 to e4bbe67 Compare October 10, 2024 01:18
Copy link
Contributor

@gfukushima gfukushima left a comment

Choose a reason for hiding this comment

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

lgtm, I might have missed something though. I don't see where we're doing this:

It is a bit inconsistent to include the GetPayloadResponse in FallbackData

@StefanBratanov
Copy link
Contributor Author

lgtm, I might have missed something though. I don't see where we're doing this:

It is a bit inconsistent to include the GetPayloadResponse in FallbackData

The description wasn't worded properly. Updated it now. Basically, when using the builder flow and we fallback to local we store the whole GetPayloadResponse and that wasn't the case for the local flow. We just extracted the needed fields and set them as variables.

@StefanBratanov StefanBratanov merged commit a416449 into Consensys:master Oct 10, 2024
17 checks passed
@StefanBratanov StefanBratanov deleted the refactor_execution_payload_result branch October 10, 2024 02:38
tbenr pushed a commit to zilm13/teku that referenced this pull request Oct 14, 2024
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