diff --git a/core/genesis.go b/core/genesis.go index 0d77fe6ce8..6496a7127c 100644 --- a/core/genesis.go +++ b/core/genesis.go @@ -597,7 +597,7 @@ func DefaultSepoliaGenesisBlock() *Genesis { // DeveloperGenesisBlock returns the 'geth --dev' genesis block. func DeveloperGenesisBlock(period uint64, gasLimit uint64, faucet common.Address) *Genesis { // Override the default period to the user requested one - config := *params.SuaveChainConfig + config := *params.DeveloperSuaveChainConfig // Assemble and return the genesis with the precompiles and faucet pre-funded return &Genesis{ diff --git a/params/config.go b/params/config.go index a01d47fedc..2cbcd1630d 100644 --- a/params/config.go +++ b/params/config.go @@ -152,6 +152,30 @@ var ( Epoch: 30000, }, } + + // SuaveChainConfig for development with 0 period to avoid mining empty blocks + DeveloperSuaveChainConfig = &ChainConfig{ + ChainID: big.NewInt(424242), + HomesteadBlock: big.NewInt(0), + DAOForkBlock: nil, + DAOForkSupport: false, + EIP150Block: big.NewInt(0), + EIP155Block: big.NewInt(0), + EIP158Block: big.NewInt(0), + ByzantiumBlock: big.NewInt(0), + ConstantinopleBlock: big.NewInt(0), + PetersburgBlock: big.NewInt(0), + IstanbulBlock: big.NewInt(0), + MuirGlacierBlock: big.NewInt(0), + BerlinBlock: big.NewInt(0), + LondonBlock: big.NewInt(0), + SuaveBlock: big.NewInt(0), + ArrowGlacierBlock: nil, + Clique: &CliqueConfig{ + Period: 0, + Epoch: 30000, + }, + } // AllEthashProtocolChanges contains every protocol change (EIPs) introduced // and accepted by the Ethereum core developers into the Ethash consensus. AllEthashProtocolChanges = &ChainConfig{