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

Add beacon block proto #13584

Merged
merged 1 commit into from
Feb 5, 2024
Merged

Add beacon block proto #13584

merged 1 commit into from
Feb 5, 2024

Conversation

potuz
Copy link
Contributor

@potuz potuz commented Feb 5, 2024

This PR adds the beacon block protos for ePBS.

  • It does not include 7002 structures.
  • It does include a commit to the signed inclusion list summary in the beacon block body

This last item differs from the current design in potuz/consensus-specs#1 as discussed offline.

@potuz potuz requested review from prestonvanloon and a team as code owners February 5, 2024 20:24
@potuz potuz requested review from nalepae and terencechain and removed request for a team February 5, 2024 20:24
Comment on lines 95 to 109
// Eth1Data represents references to the Ethereum 1.x deposit contract.
message Eth1Data {
// The 32 byte deposit tree root for the last deposit included in this
// block.
bytes deposit_root = 1 [(ethereum.eth.ext.ssz_size) = "32"];

// The total number of deposits included in the beacon chain since genesis
// including the deposits in this block.
uint64 deposit_count = 2;

// The 32 byte block hash of the Ethereum 1.x block considered for deposit
// inclusion.
bytes block_hash = 3 [(ethereum.eth.ext.ssz_size) = "32"];
}

Copy link
Member

Choose a reason for hiding this comment

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

Why did we move these from L271-L285?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sorry, tried to decouple the proto files and moved Eth1 data to another file, but in the end the dependencies of slashings with headers make it impossible to have different files for protos on blocks. Desisted on finding the right place again :)

option php_namespace = "Ethereum\\Eth\\v1alpha1";

// Eth1Data represents references to the Ethereum 1.x deposit contract.
message Eth1Data {
Copy link
Member

Choose a reason for hiding this comment

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

Why did we have to add this file?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ahh crap this file should be removed, forgot about it... doing it now

@potuz potuz merged commit c3d01be into epbs Feb 5, 2024
16 checks passed
@potuz potuz deleted the epbs-core-struct-protos branch February 5, 2024 21:18
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.

None yet

2 participants