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

Update block Beacon APIs to Electra #14488

Merged
merged 6 commits into from
Oct 4, 2024
Merged

Update block Beacon APIs to Electra #14488

merged 6 commits into from
Oct 4, 2024

Conversation

@rkapka rkapka requested a review from a team as a code owner September 30, 2024 12:04
@rkapka rkapka added Ready For Review API Api related tasks Electra electra hardfork labels Sep 30, 2024
@saolyn
Copy link
Contributor

saolyn commented Sep 30, 2024

Part of #14476

@james-prysm james-prysm self-requested a review September 30, 2024 14:00
saolyn
saolyn previously approved these changes Oct 1, 2024
httputil.HandleError(w, err.Error(), http.StatusInternalServerError)
return
}
httputil.WriteSsz(w, sszResp, "blindedDenebBlockContents.ssz")
Copy link
Contributor

Choose a reason for hiding this comment

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

this says blinded deneb

httputil.HandleError(w, err.Error(), http.StatusInternalServerError)
return
}
httputil.WriteSsz(w, sszResp, "denebBlockContents.ssz")
Copy link
Contributor

Choose a reason for hiding this comment

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

this says deneb

@@ -1,5 +1,5 @@
// Code generated by fastssz. DO NOT EDIT.
// Hash: bc8a0f7f6c8dadac6bcb0eaab2dea4888cc44c5b3f4fe9998a71e15f1a059399
// Hash: 972fffced75dd107ea15cf7ca6f49458de90b0e9ec83538fa0d106e85d5f60de
Copy link
Contributor

Choose a reason for hiding this comment

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

why is this updated?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

will revert

@@ -136,7 +136,8 @@ ssz_electra_objs = [
"AggregateAttestationAndProofElectra",
"AttestationElectra",
"AttesterSlashingElectra",
"BeaconBlockElectra",
"BeaconBlockBodyElectra",
"BeaconBlockContentsElectra",
Copy link
Contributor

Choose a reason for hiding this comment

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

why is blinded block contents not needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is because (weirdly) https://ethereum.github.io/beacon-APIs/?urls.primaryName=dev#/Validator/produceBlockV3 returns full contents for a non-blinded block and only the block in the blinded case.

rkapka added 2 commits October 2, 2024 09:56
This reverts commit a7ef57a2532f9ee02831d180926f7b84f5104a2b.
@james-prysm
Copy link
Contributor

we need to update the validator rest to use the new v3 endpoint right?

@rkapka rkapka added this pull request to the merge queue Oct 4, 2024
Merged via the queue into develop with commit cf4ffc9 Oct 4, 2024
17 of 18 checks passed
@rkapka rkapka deleted the electra-beacon-api-pt2 branch October 4, 2024 08:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API Api related tasks Electra electra hardfork
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants