aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorWei-Ning Huang <aitjcize@gmail.com>2018-11-12 11:34:02 +0800
committerWei-Ning Huang <w@dexon.org>2019-03-12 12:19:09 +0800
commit3d44d52cc620d1730a48c3ef8c1ea4f76131d920 (patch)
treec21a7643ba7b8b05e5756e084a1362c9153808c3 /core
parentefaa2aaf3bef419c18eccc5ea33555d41060dd98 (diff)
downloaddexon-3d44d52cc620d1730a48c3ef8c1ea4f76131d920.tar.gz
dexon-3d44d52cc620d1730a48c3ef8c1ea4f76131d920.tar.zst
dexon-3d44d52cc620d1730a48c3ef8c1ea4f76131d920.zip
params: fix genesis block config and use testnet for test (#10)
Diffstat (limited to 'core')
-rw-r--r--core/genesis.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/genesis.go b/core/genesis.go
index 1b7a3666e..1104f5bb2 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),
}