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 merge beacon block wrappers #9906

Merged
merged 6 commits into from
Nov 24, 2021
Merged

Add merge beacon block wrappers #9906

merged 6 commits into from
Nov 24, 2021

Conversation

terencechain
Copy link
Member

@terencechain terencechain commented Nov 15, 2021

This PR adds merge beacon block wrappers

@terencechain terencechain self-assigned this Nov 15, 2021
@terencechain terencechain changed the title WIP: Add merge beacon block wrappers Add merge beacon block wrappers Nov 24, 2021
@terencechain terencechain marked this pull request as ready for review November 24, 2021 17:59
@terencechain terencechain requested a review from a team as a code owner November 24, 2021 17:59
@terencechain terencechain added Merge PRs related to the great milestone the merge OK to merge and removed OK to merge labels Nov 24, 2021
if b.ExecutionPayload == nil {
b.ExecutionPayload = &ethpb.ExecutionPayload{
ParentHash: make([]byte, 32),
FeeRecipient: make([]byte, 20),
Copy link
Contributor

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

Copy link
Member

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?

Copy link
Member Author

@terencechain terencechain Nov 24, 2021

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)

@terencechain terencechain merged commit c9d5b4b into develop Nov 24, 2021
@delete-merged-branch delete-merged-branch bot deleted the merge-block-wrappers branch November 24, 2021 22:26
potuz pushed a commit that referenced this pull request Nov 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Merge PRs related to the great milestone the merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants