From 515b06fa46fa56c5fca1c3f44826cf2fd090409b Mon Sep 17 00:00:00 2001 From: Wei-Ning Huang Date: Thu, 1 Nov 2018 14:48:36 +0800 Subject: dex: set blocktime to millisecond timestamp --- dex/app.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dex') 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), -- cgit