diff options
author | Mission Liao <mission.liao@dexon.org> | 2019-02-25 19:08:17 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-03-12 12:19:09 +0800 |
commit | f3658a11e0a72da8da4c716cbcecc69d79f396ce (patch) | |
tree | bec0b457f6305f58473974bb855bf69519a873e3 /core/genesis.go | |
parent | d779f5aead9e91b97c8d05136ddb7a6bd84f4276 (diff) | |
download | dexon-f3658a11e0a72da8da4c716cbcecc69d79f396ce.tar dexon-f3658a11e0a72da8da4c716cbcecc69d79f396ce.tar.gz dexon-f3658a11e0a72da8da4c716cbcecc69d79f396ce.tar.bz2 dexon-f3658a11e0a72da8da4c716cbcecc69d79f396ce.tar.lz dexon-f3658a11e0a72da8da4c716cbcecc69d79f396ce.tar.xz dexon-f3658a11e0a72da8da4c716cbcecc69d79f396ce.tar.zst dexon-f3658a11e0a72da8da4c716cbcecc69d79f396ce.zip |
params: add Yilan network (#207)
* Add Yilan network
* Fixup: remove dummy log
Diffstat (limited to 'core/genesis.go')
-rw-r--r-- | core/genesis.go | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/core/genesis.go b/core/genesis.go index 2b42fa2cc..ea521dc9b 100644 --- a/core/genesis.go +++ b/core/genesis.go @@ -237,6 +237,8 @@ func (g *Genesis) configOrDefault(ghash common.Hash) *params.ChainConfig { return params.MainnetChainConfig case ghash == params.TestnetGenesisHash: return params.TestnetChainConfig + case ghash == params.YilanGenesisHash: + return params.YilanChainConfig default: return params.AllEthashProtocolChanges } @@ -435,6 +437,18 @@ func DefaultTaipeiGenesisBlock() *Genesis { } } +// DefaultYilanGenesisBlock returns the Yilan network genesis block. +func DefaultYilanGenesisBlock() *Genesis { + return &Genesis{ + Config: params.YilanChainConfig, + Nonce: 0x42, + ExtraData: hexutil.MustDecode("0x3535353535353535353535353535353535353535353535353535353535353535"), + GasLimit: 40000000, + Difficulty: big.NewInt(1), + Alloc: decodePrealloc(yilanAllocData), + } +} + // DeveloperGenesisBlock returns the 'geth --dev' genesis block. Note, this must // be seeded with the func DeveloperGenesisBlock(period uint64, faucet common.Address) *Genesis { |