From 61cb6c4428d46897b1cb812f431289cdbb9a4433 Mon Sep 17 00:00:00 2001 From: Wei-Ning Huang Date: Mon, 26 Nov 2018 13:54:28 +0800 Subject: core: add Taipei testnet (#47) Add a new testnet named Taipei. --- core/genesis.go | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'core') 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 { -- cgit v1.2.3