mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-17 01:13:45 +00:00
Callisto genesis config
This commit is contained in:
parent
79348902e5
commit
e22f4696f4
2 changed files with 14 additions and 2 deletions
|
|
@ -159,7 +159,7 @@ func SetupGenesisBlock(db ethdb.Database, genesis *Genesis) (*params.ChainConfig
|
|||
if (stored == common.Hash{}) {
|
||||
if genesis == nil {
|
||||
log.Info("Writing default main-net genesis block")
|
||||
genesis = DefaultGenesisBlock()
|
||||
genesis = DefaultCallistoMainnetGenesisBlock()
|
||||
} else {
|
||||
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.
|
||||
func DefaultTestnetGenesisBlock() *Genesis {
|
||||
return &Genesis{
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue