mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-16 17:03:46 +00:00
Update genesis
This commit is contained in:
parent
6b776dba6e
commit
7b86ef3edb
2 changed files with 22 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Reference in a new issue