Callisto genesis config

This commit is contained in:
Yohan Graterol 2017-12-14 22:25:16 -05:00
parent 79348902e5
commit e22f4696f4
2 changed files with 14 additions and 2 deletions

View file

@ -159,7 +159,7 @@ func SetupGenesisBlock(db ethdb.Database, genesis *Genesis) (*params.ChainConfig
if (stored == common.Hash{}) { if (stored == common.Hash{}) {
if genesis == nil { if genesis == nil {
log.Info("Writing default main-net genesis block") log.Info("Writing default main-net genesis block")
genesis = DefaultGenesisBlock() genesis = DefaultCallistoMainnetGenesisBlock()
} else { } else {
log.Info("Writing custom genesis block") log.Info("Writing custom genesis block")
} }
@ -318,6 +318,17 @@ func DefaultGenesisBlock() *Genesis {
} }
} }
// DefaultCallistoMainnetGenesisBlock
func DefaultCallistoMainnetGenesisBlock() *Genesis {
return &Genesis{
Config: params.CallistoMainnetChainConfig,
ExtraData: hexutil.MustDecode("0x0000000000000000000000000000000000000000000000000000000000000000"),
GasLimit: 8000000,
Difficulty: big.NewInt(4000000),
Alloc: decodePrealloc(callistoMainnetAllocData),
}
}
// DefaultTestnetGenesisBlock returns the Ropsten network genesis block. // DefaultTestnetGenesisBlock returns the Ropsten network genesis block.
func DefaultTestnetGenesisBlock() *Genesis { func DefaultTestnetGenesisBlock() *Genesis {
return &Genesis{ return &Genesis{

File diff suppressed because one or more lines are too long