Skip to content

Commit

Permalink
core, params: Suave Developer chain config
Browse files Browse the repository at this point in the history
  • Loading branch information
dmarzzz committed Sep 19, 2023
1 parent 02f38f7 commit 251dbb6
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
2 changes: 1 addition & 1 deletion core/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down
24 changes: 24 additions & 0 deletions params/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down

0 comments on commit 251dbb6

Please sign in to comment.