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

Update "--dev" to use the Cancun hardfork. #3311

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions packages/client/CHANGELOG.md
Expand Up @@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
(modification: no type change headlines) and this project adheres to
[Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## Unreleased

Update the devnet setting (enabled using `--dev`) to use the Cancun hardfork.

## 0.10.0 - 2024-02-08

This client release now comes with official Dencun hardfork support 🎉 and by default uses WASM for crypto primitives for faster block execution times.
Expand Down
5 changes: 4 additions & 1 deletion packages/client/bin/cli.ts
Expand Up @@ -654,6 +654,9 @@ async function setupDevnet(prefundAddress: Address) {
istanbulBlock: 0,
berlinBlock: 0,
londonBlock: 0,
mergeForkBlock: 0,
shanghaiTime: 0,
cancunTime: 0,
...consensusConfig,
},
nonce: '0x0',
Expand All @@ -674,7 +677,7 @@ async function setupDevnet(prefundAddress: Address) {
extraData,
alloc: { [addr]: { balance: '0x10000000000000000000' } },
}
const common = Common.fromGethGenesis(chainData, { chain: 'devnet', hardfork: Hardfork.London })
const common = Common.fromGethGenesis(chainData, { chain: 'devnet', hardfork: Hardfork.Cancun })
const customGenesisState = parseGethGenesisState(chainData)
return { common, customGenesisState }
}
Expand Down