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-04-09 21:32:53 +0800
commit07f8cae8805eff6bb4b5a0d82915ad8fb6aeb347 (patch)
treee0524472a70c4a236b206e7f5454d3d0d709c1ff /core
parentf5a74ed705ebd6f58d724b007de8718f2da6aac2 (diff)
downloaddexon-07f8cae8805eff6bb4b5a0d82915ad8fb6aeb347.tar
dexon-07f8cae8805eff6bb4b5a0d82915ad8fb6aeb347.tar.gz
dexon-07f8cae8805eff6bb4b5a0d82915ad8fb6aeb347.tar.bz2
dexon-07f8cae8805eff6bb4b5a0d82915ad8fb6aeb347.tar.lz
dexon-07f8cae8805eff6bb4b5a0d82915ad8fb6aeb347.tar.xz
dexon-07f8cae8805eff6bb4b5a0d82915ad8fb6aeb347.tar.zst
dexon-07f8cae8805eff6bb4b5a0d82915ad8fb6aeb347.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 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),
}