-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Add beacon block proto #13584
Conversation
// 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"]; | ||
} | ||
|
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.
Why did we move these from L271-L285?
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.
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 :)
proto/prysm/v1alpha1/eth1_data.proto
Outdated
option php_namespace = "Ethereum\\Eth\\v1alpha1"; | ||
|
||
// Eth1Data represents references to the Ethereum 1.x deposit contract. | ||
message Eth1Data { |
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.
Why did we have to add this file?
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.
ahh crap this file should be removed, forgot about it... doing it now
634307c
to
d816a74
Compare
d816a74
to
6a724ab
Compare
This PR adds the beacon block protos for ePBS.
This last item differs from the current design in potuz/consensus-specs#1 as discussed offline.