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

Fix Capella genesis testing tool #2940

Merged
merged 3 commits into from
Jul 18, 2022
Merged

Fix Capella genesis testing tool #2940

merged 3 commits into from
Jul 18, 2022

Conversation

hwwhww
Copy link
Contributor

@hwwhww hwwhww commented Jul 15, 2022

  • Fix create_genesis_state: should have updated previous_version and current_version
  • Add Capella version initialize_beacon_state_from_eth1

@etan-status
Copy link
Contributor

Thanks, this indeed fixes the problems with make test in #2938 (merged this PR into there as well)

Copy link
Member

@ralexstokes ralexstokes left a comment

Choose a reason for hiding this comment

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

generally looks good!

left some feedback

specs/capella/beacon-chain.md Outdated Show resolved Hide resolved
state.next_sync_committee = get_next_sync_committee(state)

# Initialize the execution payload header
# If empty, will initialize a chain that has not yet gone through the Merge transition
Copy link
Member

Choose a reason for hiding this comment

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

this is an interesting point.... is there any value in testing a capella net pre-merge?

I think its an open question but given that we are starting this beacon chain at cappella, it feels like testing a pre-merge state is something that would never hit in a public-facing testnet or mainnet

Copy link
Contributor Author

Choose a reason for hiding this comment

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

agreed. I'd remove this comment.

@djrtwo djrtwo merged commit fed037f into dev Jul 18, 2022
@djrtwo djrtwo deleted the fix-capella-genesis branch July 18, 2022 14:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants