From 07f8cae8805eff6bb4b5a0d82915ad8fb6aeb347 Mon Sep 17 00:00:00 2001 From: Wei-Ning Huang Date: Mon, 12 Nov 2018 11:34:02 +0800 Subject: params: fix genesis block config and use testnet for test (#10) --- core/genesis.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'core/genesis.go') diff --git a/core/genesis.go b/core/genesis.go index cc3a0750c..8cd6b4807 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), } -- cgit v1.2.3