diff options
author | Jimmy Hu <jimmy.hu@dexon.org> | 2019-04-08 11:11:10 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-04-09 21:32:59 +0800 |
commit | 714b173e3618c97f109d6f23fd912ae7b1dc79af (patch) | |
tree | 72a2de4af89003c94d2b14a15105653dc1c14067 /core | |
parent | 497d7a31d284682eb0214d75f04a366b44cc9c33 (diff) | |
download | dexon-714b173e3618c97f109d6f23fd912ae7b1dc79af.tar dexon-714b173e3618c97f109d6f23fd912ae7b1dc79af.tar.gz dexon-714b173e3618c97f109d6f23fd912ae7b1dc79af.tar.bz2 dexon-714b173e3618c97f109d6f23fd912ae7b1dc79af.tar.lz dexon-714b173e3618c97f109d6f23fd912ae7b1dc79af.tar.xz dexon-714b173e3618c97f109d6f23fd912ae7b1dc79af.tar.zst dexon-714b173e3618c97f109d6f23fd912ae7b1dc79af.zip |
core: fix genesis timestamp (#338)
Diffstat (limited to 'core')
-rw-r--r-- | core/genesis.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/genesis.go b/core/genesis.go index 10585bab4..f9426212e 100644 --- a/core/genesis.go +++ b/core/genesis.go @@ -384,7 +384,7 @@ func GenesisBlockForTesting(db ethdb.Database, addr common.Address, balance *big func DefaultGenesisBlock() *Genesis { return &Genesis{ Config: params.MainnetChainConfig, - Timestamp: params.MainnetChainConfig.DMoment, + Timestamp: params.MainnetChainConfig.DMoment * 1000, Nonce: 0x42, ExtraData: hexutil.MustDecode("0x5765692d4e696e6720536f6e696320426f6a696520323031382d31302d32302e"), GasLimit: 40000000, @@ -397,7 +397,7 @@ func DefaultGenesisBlock() *Genesis { func DefaultTestnetGenesisBlock() *Genesis { return &Genesis{ Config: params.TestnetChainConfig, - Timestamp: params.TestnetChainConfig.DMoment, + Timestamp: params.TestnetChainConfig.DMoment * 1000, Nonce: 0x42, ExtraData: hexutil.MustDecode("0x3535353535353535353535353535353535353535353535353535353535353535"), GasLimit: 40000000, @@ -410,7 +410,7 @@ func DefaultTestnetGenesisBlock() *Genesis { func DefaultTaipeiGenesisBlock() *Genesis { return &Genesis{ Config: params.TaipeiChainConfig, - Timestamp: params.TaipeiChainConfig.DMoment, + Timestamp: params.TaipeiChainConfig.DMoment * 1000, Nonce: 0x42, ExtraData: hexutil.MustDecode("0x3535353535353535353535353535353535353535353535353535353535353535"), GasLimit: 40000000, @@ -423,7 +423,7 @@ func DefaultTaipeiGenesisBlock() *Genesis { func DefaultYilanGenesisBlock() *Genesis { return &Genesis{ Config: params.YilanChainConfig, - Timestamp: params.YilanChainConfig.DMoment, + Timestamp: params.YilanChainConfig.DMoment * 1000, Nonce: 0x42, ExtraData: hexutil.MustDecode("0x3535353535353535353535353535353535353535353535353535353535353535"), GasLimit: 40000000, |