diff options
author | Wei-Ning Huang <w@dexon.org> | 2018-11-01 14:48:36 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-04-09 13:49:55 +0800 |
commit | e8a3c11a252b3520f0a82589e6067da5bd23a8e3 (patch) | |
tree | 39802d8fbf42ddc8cd6005c83569bdf8fa790ff8 | |
parent | 1f76d8428e1bf5b07abed54cd5dfcb7b7c5f26cb (diff) | |
download | dexon-e8a3c11a252b3520f0a82589e6067da5bd23a8e3.tar dexon-e8a3c11a252b3520f0a82589e6067da5bd23a8e3.tar.gz dexon-e8a3c11a252b3520f0a82589e6067da5bd23a8e3.tar.bz2 dexon-e8a3c11a252b3520f0a82589e6067da5bd23a8e3.tar.lz dexon-e8a3c11a252b3520f0a82589e6067da5bd23a8e3.tar.xz dexon-e8a3c11a252b3520f0a82589e6067da5bd23a8e3.tar.zst dexon-e8a3c11a252b3520f0a82589e6067da5bd23a8e3.zip |
dex: set blocktime to millisecond timestamp
-rw-r--r-- | dex/app.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dex/app.go b/dex/app.go index 3bc5053a4..e3685205f 100644 --- a/dex/app.go +++ b/dex/app.go @@ -413,7 +413,7 @@ func (d *DexconApp) BlockDelivered(blockHash coreCommon.Hash, result coreTypes.F newBlock := types.NewBlock(&types.Header{ Number: new(big.Int).SetUint64(result.Height), - Time: big.NewInt(result.Timestamp.Unix()), + Time: big.NewInt(result.Timestamp.UnixNano() / 1000000), Coinbase: common.BytesToAddress(block.ProposerID.Bytes()), GasLimit: d.gov.DexconConfiguration(block.Position.Round).BlockGasLimit, Difficulty: big.NewInt(1), |