aboutsummaryrefslogtreecommitdiffstats
path: root/core/genesis.go
diff options
context:
space:
mode:
authorWei-Ning Huang <w@dexon.org>2018-11-26 13:54:28 +0800
committerWei-Ning Huang <w@dexon.org>2019-03-12 12:19:09 +0800
commit61cb6c4428d46897b1cb812f431289cdbb9a4433 (patch)
treec37d1946a7557fb4e009adf9c0cd64ee1da9d8cd /core/genesis.go
parentf79bf330b4b649ea74d54faf749214c14f32af9c (diff)
downloaddexon-61cb6c4428d46897b1cb812f431289cdbb9a4433.tar
dexon-61cb6c4428d46897b1cb812f431289cdbb9a4433.tar.gz
dexon-61cb6c4428d46897b1cb812f431289cdbb9a4433.tar.bz2
dexon-61cb6c4428d46897b1cb812f431289cdbb9a4433.tar.lz
dexon-61cb6c4428d46897b1cb812f431289cdbb9a4433.tar.xz
dexon-61cb6c4428d46897b1cb812f431289cdbb9a4433.tar.zst
dexon-61cb6c4428d46897b1cb812f431289cdbb9a4433.zip
core: add Taipei testnet (#47)
Add a new testnet named Taipei.
Diffstat (limited to 'core/genesis.go')
-rw-r--r--core/genesis.go14
1 files changed, 13 insertions, 1 deletions
diff --git a/core/genesis.go b/core/genesis.go
index e41fe9abd..3e261deed 100644
--- a/core/genesis.go
+++ b/core/genesis.go
@@ -393,7 +393,7 @@ func DefaultGenesisBlock() *Genesis {
}
}
-// DefaultTestnetGenesisBlock returns the Ropsten network genesis block.
+// DefaultTestnetGenesisBlock returns the Taiwan network genesis block.
func DefaultTestnetGenesisBlock() *Genesis {
return &Genesis{
Config: params.TestnetChainConfig,
@@ -405,6 +405,18 @@ func DefaultTestnetGenesisBlock() *Genesis {
}
}
+// DefaultTaipeiGenesisBlock returns the Taipei network genesis block.
+func DefaultTaipeiGenesisBlock() *Genesis {
+ return &Genesis{
+ Config: params.TaipeiChainConfig,
+ Nonce: 0x42,
+ ExtraData: hexutil.MustDecode("0x3535353535353535353535353535353535353535353535353535353535353535"),
+ GasLimit: 40000000,
+ Difficulty: big.NewInt(1),
+ Alloc: decodePrealloc(testnetAllocData),
+ }
+}
+
// DeveloperGenesisBlock returns the 'geth --dev' genesis block. Note, this must
// be seeded with the
func DeveloperGenesisBlock(period uint64, faucet common.Address) *Genesis {