-
Notifications
You must be signed in to change notification settings - Fork 1.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 merge beacon block wrappers #9906
Conversation
if b.ExecutionPayload == nil { | ||
b.ExecutionPayload = ðpb.ExecutionPayload{ | ||
ParentHash: make([]byte, 32), | ||
FeeRecipient: make([]byte, 20), |
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.
These kinds of hard-coded sizes scare me. We should probably refactor later to use constants
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.
Same feedback as Raul, except I also question why we need to allocate all of this empty space?
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.
These are only used by tests, we typically do them before HTR or else HTR will complain incorrect list size. Example:
b := hydrate(block{slot:1})
r := hash_tree_root(b)
db.Save(r, b)
This PR adds merge beacon block wrappers