aboutsummaryrefslogtreecommitdiffstats
path: root/dex/app.go
diff options
context:
space:
mode:
authorWei-Ning Huang <w@dexon.org>2018-11-01 14:48:36 +0800
committerWei-Ning Huang <w@byzantine-lab.io>2019-06-12 17:27:17 +0800
commitec9a70730d3effe5a3d942fbd07d6414ce8dc07f (patch)
treeec1dd0a7f83d6e784985f8beb75e6c54b69ef873 /dex/app.go
parent3feb8792cff19c8cf202c2bd530ceb2e7c12d9f7 (diff)
downloadgo-tangerine-ec9a70730d3effe5a3d942fbd07d6414ce8dc07f.tar
go-tangerine-ec9a70730d3effe5a3d942fbd07d6414ce8dc07f.tar.gz
go-tangerine-ec9a70730d3effe5a3d942fbd07d6414ce8dc07f.tar.bz2
go-tangerine-ec9a70730d3effe5a3d942fbd07d6414ce8dc07f.tar.lz
go-tangerine-ec9a70730d3effe5a3d942fbd07d6414ce8dc07f.tar.xz
go-tangerine-ec9a70730d3effe5a3d942fbd07d6414ce8dc07f.tar.zst
go-tangerine-ec9a70730d3effe5a3d942fbd07d6414ce8dc07f.zip
dex: set blocktime to millisecond timestamp
Diffstat (limited to 'dex/app.go')
-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),