diff options
author | Wei-Ning Huang <w@dexon.org> | 2018-11-26 13:54:28 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@byzantine-lab.io> | 2019-06-12 17:27:19 +0800 |
commit | 06276babe273f248ba1177f2a7bc369d09c303dd (patch) | |
tree | e4f4bd4612acc0b693ef93bd8a8177cf982bb94b /core | |
parent | afc6a417210dc43a5a38ece5302de6801785316f (diff) | |
download | go-tangerine-06276babe273f248ba1177f2a7bc369d09c303dd.tar.gz go-tangerine-06276babe273f248ba1177f2a7bc369d09c303dd.tar.zst go-tangerine-06276babe273f248ba1177f2a7bc369d09c303dd.zip |
core: add Taipei testnet (#47)
Add a new testnet named Taipei.
Diffstat (limited to 'core')
-rw-r--r-- | core/genesis.go | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/core/genesis.go b/core/genesis.go index 0b59f4bbb..4b0e878fe 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 { |