-
Notifications
You must be signed in to change notification settings - Fork 4
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
copy/pasta more of the Withdrawals PR #65
Conversation
c0af963
to
2c645c6
Compare
2c645c6
to
b75e1a6
Compare
@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 |
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? |
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. |
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.
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") |
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.
nit: blob transactions aren't supported in V1 either. Let's also add a check for excessDataGas
here to be defensive.
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.
Hmm, doesn't seem like we have (easy) access to that field here?
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.
ah you're right. I misread that as the execution payload. This is fine as-is.
pulling in more of ethereum#25838 related to the execution api