-
Notifications
You must be signed in to change notification settings - Fork 20.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
Beacon root contract in dev mode and private chains #29539
Comments
I agree
Why? |
Sorry, I forgot there was still a task to do here (add the beacon root contract to the genesis alloc.) |
Hi @holiman can I work on this? |
WIP, The PR is finishing soon :)
|
Kindly find the implementation here: #29655 |
EIP-4788 introduces a system contract which is deployed as a normal contract to the state. However it is required for networks which have the Cancun fork enabled. It is a bug when a dev chain or private chain with Cancun enabled is deployed and it is missing the beacon root contract.
For dev-mode, we should add the beacon root contract to the genesis alloc. As for private chain, IMO the least we should do is refuse
geth init
in case Cancun is enabled and the genesis alloc is missing the beacon root code at the correct address.The text was updated successfully, but these errors were encountered: