Skip to content

Commit c3465cb

Browse files
authored
core: fix dev mode genesis difficulty (#29469)
The dev mode is nowadays in Merge-mode from genesis, hence the difficulty of the first block should be zero.
1 parent ed4bc7f commit c3465cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/genesis.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,7 @@ func DeveloperGenesisBlock(gasLimit uint64, faucet *common.Address) *Genesis {
582582
Config: &config,
583583
GasLimit: gasLimit,
584584
BaseFee: big.NewInt(params.InitialBaseFee),
585-
Difficulty: big.NewInt(1),
585+
Difficulty: big.NewInt(0),
586586
Alloc: map[common.Address]types.Account{
587587
common.BytesToAddress([]byte{1}): {Balance: big.NewInt(1)}, // ECRecover
588588
common.BytesToAddress([]byte{2}): {Balance: big.NewInt(1)}, // SHA256

0 commit comments

Comments
 (0)