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

params: devnet config fix #146

Merged
merged 1 commit into from
Oct 2, 2023
Merged

params: devnet config fix #146

merged 1 commit into from
Oct 2, 2023

Conversation

protolambda
Copy link
Collaborator

Fix the devnet config.

Based on chaosnet PR, which fixes the dumpgenesis command.

Verify with:

curl https://storage.googleapis.com/oplabs-network-data/internal-devnet/genesis.json > tmp/devnet_genesis.json
go run ./cmd/geth init --datadir=tmp/devnetdata tmp/devnet_genesis.json
go run ./cmd/geth dumpgenesis --datadir=tmp/devnetdata > tmp/devnet_dump_genesis.json
diff <(jq --sort-keys . tmp/devnet_genesis.json) <(jq --sort-keys . tmp/devnet_dump_genesis.json)

go run ./cmd/geth dumpgenesis --beta.op-network=op-labs-devnet-0-goerli-dev-0 > tmp/superchain_devnet_dump_genesis.json
diff <(jq --sort-keys . tmp/devnet_genesis.json) <(jq --sort-keys . tmp/superchain_devnet_dump_genesis.json)

The existing devnets did not adopt the previous malformed superchain-registry sourced configuration yet, it reports eip1559Elasticity=10.

# 1) port-forward to the devnet sequencer
# 2) pull chain config:
cast rpc --rpc-url=http://localhost:8545 debug_chainConfig
{"chainId":997,"homesteadBlock":0,"eip150Block":0,"eip155Block":0,"eip158Block":0,"byzantiumBlock":0,"constantinopleBlock":0,"petersburgBlock":0,"istanbulBlock":0,"muirGlacierBlock":0,"berlinBlock":0,"londonBlock":0,"arrowGlacierBlock":0,"grayGlacierBlock":0,"mergeNetsplitBlock":0,"bedrockBlock":0,"regolithTime":1677984480,"terminalTotalDifficulty":0,"terminalTotalDifficultyPassed":true,"optimism":{"eip1559Elasticity":10,"eip1559Denominator":50}}

Base automatically changed from chaosnet to optimism October 2, 2023 13:42
@protolambda protolambda requested a review from Inphi October 2, 2023 13:43
@protolambda protolambda merged commit 1e6910b into optimism Oct 2, 2023
1 check passed
@protolambda protolambda deleted the devnet-config-fix branch October 2, 2023 14:19
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