diff options
author | Jimmy Hu <jimmy.hu@dexon.org> | 2019-04-08 11:11:10 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@byzantine-lab.io> | 2019-06-15 22:09:55 +0800 |
commit | 011258cbd51600f44846a1650627a92afc21086a (patch) | |
tree | b3624996687c6575339073d4bd8079b0872b41ae /core/genesis.go | |
parent | 2b6c8c733a52f686c7f418bb5218f53aa8c19a8d (diff) | |
download | go-tangerine-011258cbd51600f44846a1650627a92afc21086a.tar go-tangerine-011258cbd51600f44846a1650627a92afc21086a.tar.gz go-tangerine-011258cbd51600f44846a1650627a92afc21086a.tar.bz2 go-tangerine-011258cbd51600f44846a1650627a92afc21086a.tar.lz go-tangerine-011258cbd51600f44846a1650627a92afc21086a.tar.xz go-tangerine-011258cbd51600f44846a1650627a92afc21086a.tar.zst go-tangerine-011258cbd51600f44846a1650627a92afc21086a.zip |
core: fix genesis timestamp (#338)
Diffstat (limited to 'core/genesis.go')
-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, |