Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This adds and updates optimism genesis logic for below chains:
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 generatesgenesis-l2.json
.eip150Hash located at chainspec is removed because it is deprecated. Ref.