diff options
author | Wei-Ning Huang <w@dexon.org> | 2018-11-01 14:48:36 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@byzantine-lab.io> | 2019-06-12 17:27:17 +0800 |
commit | ec9a70730d3effe5a3d942fbd07d6414ce8dc07f (patch) | |
tree | ec1dd0a7f83d6e784985f8beb75e6c54b69ef873 | |
parent | 3feb8792cff19c8cf202c2bd530ceb2e7c12d9f7 (diff) | |
download | go-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
-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), |