diff options
author | Wei-Ning Huang <w@dexon.org> | 2018-11-26 13:54:28 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-04-09 21:32:54 +0800 |
commit | 32e1c5ad4d6e57e4d555577fa586324f10b7319e (patch) | |
tree | cce99e6243b10c46226355fd58787f47a0b1c64a /core/genesis.go | |
parent | 622ae7fe3ef067d4f395937a9bb0f783a7c1e6c7 (diff) | |
download | dexon-32e1c5ad4d6e57e4d555577fa586324f10b7319e.tar dexon-32e1c5ad4d6e57e4d555577fa586324f10b7319e.tar.gz dexon-32e1c5ad4d6e57e4d555577fa586324f10b7319e.tar.bz2 dexon-32e1c5ad4d6e57e4d555577fa586324f10b7319e.tar.lz dexon-32e1c5ad4d6e57e4d555577fa586324f10b7319e.tar.xz dexon-32e1c5ad4d6e57e4d555577fa586324f10b7319e.tar.zst dexon-32e1c5ad4d6e57e4d555577fa586324f10b7319e.zip |
core: add Taipei testnet (#47)
Add a new testnet named Taipei.
Diffstat (limited to 'core/genesis.go')
-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 { |