diff --git a/cmd/utils/flags.go b/cmd/utils/flags.go index 374566e588..5710f35ea8 100644 --- a/cmd/utils/flags.go +++ b/cmd/utils/flags.go @@ -1040,6 +1040,9 @@ func SetEthConfig(ctx *cli.Context, stack *node.Node, cfg *eth.Config) { cfg.NetworkId = 3 } cfg.Genesis = core.DefaultTestnetGenesisBlock() + if cfg.NetworkId == 7919 { + cfg.Genesis = core.DefaultCallistoTestnetGenesisBlock() + } case ctx.GlobalBool(RinkebyFlag.Name): if !ctx.GlobalIsSet(NetworkIdFlag.Name) { cfg.NetworkId = 4 diff --git a/params/config.go b/params/config.go index 82210b6975..fe3b3ff938 100644 --- a/params/config.go +++ b/params/config.go @@ -59,6 +59,25 @@ var ( Ethash: new(EthashConfig), } + // CallistoTestnetChainConfig contains the chain parameters to run a node on the Ropsten test network. + CallistoTestnetChainConfig = &ChainConfig{ + ChainId: big.NewInt(7919), + HomesteadBlock: big.NewInt(0), + DAOForkBlock: big.NewInt(0), + DAOForkSupport: false, + EIP150Block: big.NewInt(0), + EIP150Hash: common.HexToHash("0x0000000000000000000000000000000000000000000000000000000000000000"), + EIP155Block: big.NewInt(3), + EIP158Block: big.NewInt(0), + ByzantiumBlock: big.NewInt(4), + CallistoBlock: big.NewInt(1), + + Clique: &CliqueConfig{ + Period: 15, + Epoch: 30000, + }, + } + // RinkebyChainConfig contains the chain parameters to run a node on the Rinkeby test network. RinkebyChainConfig = &ChainConfig{ ChainId: big.NewInt(4),