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.
pull/29489/head
Sina M 5 months ago committed by GitHub
parent ed4bc7f27b
commit c3465cb5ba
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      core/genesis.go

@ -582,7 +582,7 @@ func DeveloperGenesisBlock(gasLimit uint64, faucet *common.Address) *Genesis {
Config: &config, Config: &config,
GasLimit: gasLimit, GasLimit: gasLimit,
BaseFee: big.NewInt(params.InitialBaseFee), BaseFee: big.NewInt(params.InitialBaseFee),
Difficulty: big.NewInt(1), Difficulty: big.NewInt(0),
Alloc: map[common.Address]types.Account{ Alloc: map[common.Address]types.Account{
common.BytesToAddress([]byte{1}): {Balance: big.NewInt(1)}, // ECRecover common.BytesToAddress([]byte{1}): {Balance: big.NewInt(1)}, // ECRecover
common.BytesToAddress([]byte{2}): {Balance: big.NewInt(1)}, // SHA256 common.BytesToAddress([]byte{2}): {Balance: big.NewInt(1)}, // SHA256

Loading…
Cancel
Save