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

Optimism Chain Config #59

Merged
merged 9 commits into from
Jun 1, 2023
Merged

Conversation

pcw109550
Copy link
Member

@pcw109550 pcw109550 commented May 19, 2023

This adds and updates optimism genesis logic for below chains:

  • optimism mainnet
  • optimism goerli
  • optimism devnet

Optimism mainnet is not yet updated to bedrock. Therefore chainspecs for optimism mainnet must be updated: BedrockBlock number and regolith time for optimism mainnet must be updated.

Optimism mainnet had berlin hardfork at block number 3950000. Ref. This info is applied to optimism mainnet's chain config.

Allocs for optimism mainnet(core/allocs/optimism_mainnet.json) is intentionally left as blank, because alloc json file size is more than 300MB. Entire genesis json can be found here which has shasum 106b0a3247ca54714381b1109e82cc6b7e32fd79ae56fbcc2e7b1541122f84ea.

Allocs and chainspecs for optimism devnet is generated by running make devnet-up at optimism core repo. The command generates genesis-l2.json.

eip150Hash located at chainspec is removed because it is deprecated. Ref.

BedrockBlock number and regolith time for optimism mainnet
must be updated after the mainnet update.

regolith time will be equatl to bedrock update time.
@pcw109550 pcw109550 self-assigned this May 19, 2023
@pcw109550 pcw109550 marked this pull request as ready for review May 19, 2023 06:01
@pcw109550 pcw109550 force-pushed the pcw109550/optimism-chain-config branch from fd9d128 to 90f3af2 Compare May 19, 2023 06:02
@pcw109550 pcw109550 requested a review from ImTei May 19, 2023 08:07
@pcw109550 pcw109550 merged commit 0fc257f into op-erigon Jun 1, 2023
@pcw109550 pcw109550 mentioned this pull request Nov 7, 2023
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants