aboutsummaryrefslogtreecommitdiffstats
path: root/core/genesis.go
diff options
context:
space:
mode:
authorMission Liao <mission.liao@dexon.org>2019-02-25 19:08:17 +0800
committerWei-Ning Huang <w@dexon.org>2019-04-09 21:32:57 +0800
commit27d1254cd5459b69217b4b7877493a008e9dbe3e (patch)
tree125e8c41dd2c5a3fbde1d968d111c2f71dcec10e /core/genesis.go
parent5832a21db625bfa98a3b7909bb6996dd1fd2e4d3 (diff)
downloaddexon-27d1254cd5459b69217b4b7877493a008e9dbe3e.tar
dexon-27d1254cd5459b69217b4b7877493a008e9dbe3e.tar.gz
dexon-27d1254cd5459b69217b4b7877493a008e9dbe3e.tar.bz2
dexon-27d1254cd5459b69217b4b7877493a008e9dbe3e.tar.lz
dexon-27d1254cd5459b69217b4b7877493a008e9dbe3e.tar.xz
dexon-27d1254cd5459b69217b4b7877493a008e9dbe3e.tar.zst
dexon-27d1254cd5459b69217b4b7877493a008e9dbe3e.zip
params: add Yilan network (#207)
* Add Yilan network * Fixup: remove dummy log
Diffstat (limited to 'core/genesis.go')
-rw-r--r--core/genesis.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/core/genesis.go b/core/genesis.go
index 40e8a06bf..ff4d9762a 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 {