aboutsummaryrefslogtreecommitdiffstats
path: root/dex
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-04-09 21:32:52 +0800
commit515b06fa46fa56c5fca1c3f44826cf2fd090409b (patch)
tree7722cf2e1b85be29657eb2af8fa39cdb11f23e1a /dex
parent83bde85b0edcde7498ce1903cd22dd3b7e1e5b60 (diff)
downloaddexon-515b06fa46fa56c5fca1c3f44826cf2fd090409b.tar.gz
dexon-515b06fa46fa56c5fca1c3f44826cf2fd090409b.tar.zst
dexon-515b06fa46fa56c5fca1c3f44826cf2fd090409b.zip
dex: set blocktime to millisecond timestamp
Diffstat (limited to 'dex')
-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),