Skip to content

Conversation

roberto-bayardo
Copy link
Collaborator

@roberto-bayardo roberto-bayardo commented Nov 29, 2022

pulling in more of ethereum#25838 related to the execution api

@roberto-bayardo roberto-bayardo force-pushed the roberto-dev branch 5 times, most recently from c0af963 to 2c645c6 Compare November 29, 2022 07:33
@roberto-bayardo
Copy link
Collaborator Author

@Inphi had some issues with tests failing but looks all good now

@realbigsean after this is merged I'll add in the updates from ethereum/execution-apis#322

@Inphi
Copy link
Collaborator

Inphi commented Nov 29, 2022

Are these changes solely to get the execution API v2 working? Is there anything else, like withdrawals functionality, that I should watch out for in my review?

@roberto-bayardo
Copy link
Collaborator Author

roberto-bayardo commented Nov 29, 2022

Yes getting the API v2 implemented is the main goal but I also want to minimize merge pain with upstream once Withdrawals PR is merged. There's nothing significant in here that isn't already being reviewed in the Withdrawals PR above so perhaps no need to review those changes so thoroughly, I'll keep up with any updates over there.

Copy link
Collaborator

@Inphi Inphi left a comment

Choose a reason for hiding this comment

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

Looks good. Thank you!

func (api *ConsensusAPI) ForkchoiceUpdatedV1(update beacon.ForkchoiceStateV1, payloadAttributes *beacon.PayloadAttributesV1) (beacon.ForkChoiceResponse, error) {
func (api *ConsensusAPI) ForkchoiceUpdatedV1(update beacon.ForkchoiceStateV1, payloadAttributes *beacon.PayloadAttributes) (beacon.ForkChoiceResponse, error) {
if payloadAttributes != nil && payloadAttributes.Withdrawals != nil {
return beacon.STATUS_INVALID, fmt.Errorf("withdrawals not supported in V1")
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: blob transactions aren't supported in V1 either. Let's also add a check for excessDataGas here to be defensive.

Copy link
Collaborator Author

@roberto-bayardo roberto-bayardo Nov 29, 2022

Choose a reason for hiding this comment

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

Hmm, doesn't seem like we have (easy) access to that field here?

Copy link
Collaborator

Choose a reason for hiding this comment

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

ah you're right. I misread that as the execution payload. This is fine as-is.

@roberto-bayardo roberto-bayardo merged commit f9f2e60 into eip-4844 Nov 29, 2022
@roberto-bayardo roberto-bayardo deleted the roberto-dev branch November 29, 2022 21:53
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