aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWei-Ning Huang <w@dexon.org>2018-11-01 14:48:36 +0800
committerWei-Ning Huang <w@dexon.org>2019-03-12 12:19:09 +0800
commitce77665f5dc808eddb52e481f598a00d7138e107 (patch)
treec79f85c793b2b95dc648638f1898f59cd5db8bc8
parenta7323720e34e6da893be1dd853db305536bd2a5b (diff)
downloaddexon-ce77665f5dc808eddb52e481f598a00d7138e107.tar
dexon-ce77665f5dc808eddb52e481f598a00d7138e107.tar.gz
dexon-ce77665f5dc808eddb52e481f598a00d7138e107.tar.bz2
dexon-ce77665f5dc808eddb52e481f598a00d7138e107.tar.lz
dexon-ce77665f5dc808eddb52e481f598a00d7138e107.tar.xz
dexon-ce77665f5dc808eddb52e481f598a00d7138e107.tar.zst
dexon-ce77665f5dc808eddb52e481f598a00d7138e107.zip
dex: set blocktime to millisecond timestamp
-rw-r--r--dex/app.go2
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),