Skip to content

Deneb Beacon APIs#12568

Merged
james-prysm merged 1 commit intodeneb-integrationfrom
deneb-get-block
Jun 28, 2023
Merged

Deneb Beacon APIs#12568
james-prysm merged 1 commit intodeneb-integrationfrom
deneb-get-block

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 potuz, prestonvanloon 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
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
Collaborator

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
Collaborator

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
Collaborator

@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