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

Deneb Beacon APIs #12568

Merged
merged 1 commit into from
Jun 28, 2023
Merged

Deneb Beacon APIs #12568

merged 1 commit into from
Jun 28, 2023

Conversation

james-prysm
Copy link
Contributor

@james-prysm james-prysm commented Jun 26, 2023

What type of PR is this?

Other

What does this PR do? Why is it needed?

migrates the following APIs from eip4844 to deneb-integration

  • getBlockV2 json
  • getBlockV2 ssz
  • getBlindedBlock json
  • getBlindedBlock ssz
  • publishBlock json
  • publishBlock ssz (will be handled in separate PR)
  • publishBlindedBlock json
  • publishBlindedBlock ssz (will be handled in separate PR)
  • produceBlindedBlock json
  • produceBlindedBlock ssz (will be handled in separate PR)
  • produceBlockV2 json
  • produceBlockV2 ssz (will be handled in separate PR)

Which issues(s) does this PR fix?

Fixes #

Other notes for review

@james-prysm james-prysm changed the title Deneb get block - WIP Deneb Beacon APIs - WIP Jun 26, 2023
@james-prysm james-prysm force-pushed the deneb-get-block branch 2 times, most recently from 5da358c to 03b924c Compare June 27, 2023 21:00
@james-prysm james-prysm changed the title Deneb Beacon APIs - WIP Deneb Beacon APIs Jun 27, 2023
@james-prysm james-prysm marked this pull request as ready for review June 27, 2023 22:58
@james-prysm james-prysm requested a review from a team as a code owner June 27, 2023 22:58
@james-prysm james-prysm requested review from prestonvanloon, potuz and terencechain and removed request for a team June 27, 2023 22:58
@james-prysm james-prysm force-pushed the deneb-get-block branch 2 times, most recently from e44fa58 to 1c71580 Compare June 28, 2023 04:28
@@ -92,7 +96,9 @@ go_library(
ssz_proto_files(
name = "ssz_proto_files",
srcs = [
"beacon_block.proto",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

want to make sure doing something like this makes sense, that beacon block can be moved here to make use of those variables for setting commitment length and blob length in proto

TimeStamp string `json:"timestamp"`
ExtraData string `json:"extra_data" hex:"true"`
BaseFeePerGas string `json:"base_fee_per_gas" uint256:"true"`
ExcessDataGas string `json:"excess_data_gas" uint256:"true"`
Copy link
Member

Choose a reason for hiding this comment

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

Don't forget DataGasUsed field. Same with header

Slot string `json:"slot"`
BlockParentRoot string `json:"block_parent_root" hex:"true"`
ProposerIndex string `json:"proposer_index"`
Blob string `json:"blob" hex:"true"` // pattern: "^0x[a-fA-F0-9]{262144}$" ssz-max:"4"
Copy link
Member

Choose a reason for hiding this comment

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

I don't think ssz-max:"4" comment is correct. This is just a single blob right?

}

message SignedBlindedBlobSidecar {
BlindedBlobSidecar message = 1 [(ethereum.eth.ext.ssz_max) = "4"];
Copy link
Member

@terencechain terencechain Jun 28, 2023

Choose a reason for hiding this comment

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

The max should be 6 now

there should be no max here

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.

3 participants