diff options
author | Wei-Ning Huang <aitjcize@gmail.com> | 2018-11-12 11:34:02 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2018-12-19 20:54:27 +0800 |
commit | 68eeeb7eade3d621cc2ea0e08c95a869301fb1bf (patch) | |
tree | 7490130c95d48b0492b0b72937dd9e4e913b65d1 /core | |
parent | 5d077053161c4c60f83519aa9e27aa49ee5ad51f (diff) | |
download | dexon-68eeeb7eade3d621cc2ea0e08c95a869301fb1bf.tar dexon-68eeeb7eade3d621cc2ea0e08c95a869301fb1bf.tar.gz dexon-68eeeb7eade3d621cc2ea0e08c95a869301fb1bf.tar.bz2 dexon-68eeeb7eade3d621cc2ea0e08c95a869301fb1bf.tar.lz dexon-68eeeb7eade3d621cc2ea0e08c95a869301fb1bf.tar.xz dexon-68eeeb7eade3d621cc2ea0e08c95a869301fb1bf.tar.zst dexon-68eeeb7eade3d621cc2ea0e08c95a869301fb1bf.zip |
params: fix genesis block config and use testnet for test (#10)
Diffstat (limited to 'core')
-rw-r--r-- | core/genesis.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/genesis.go b/core/genesis.go index 748a602e1..245fe9fff 100644 --- a/core/genesis.go +++ b/core/genesis.go @@ -382,7 +382,7 @@ func DefaultGenesisBlock() *Genesis { return &Genesis{ Config: params.MainnetChainConfig, Timestamp: 1540024964, - Nonce: 42, + Nonce: 0x42, ExtraData: hexutil.MustDecode("0x5765692d4e696e6720536f6e696320426f6a696520323031382d31302d32302e"), GasLimit: 8000000, Difficulty: big.NewInt(1), @@ -394,9 +394,9 @@ func DefaultGenesisBlock() *Genesis { func DefaultTestnetGenesisBlock() *Genesis { return &Genesis{ Config: params.TestnetChainConfig, - Nonce: 42, + Nonce: 0x42, ExtraData: hexutil.MustDecode("0x3535353535353535353535353535353535353535353535353535353535353535"), - GasLimit: 16777216, + GasLimit: 8000000, Difficulty: big.NewInt(1), Alloc: decodePrealloc(testnetAllocData), } |