diff options
author | Wei-Ning Huang <w@dexon.org> | 2018-11-01 14:48:36 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2018-12-19 20:54:27 +0800 |
commit | ab6b87247328efbcf210e8287f56f6910e9a7162 (patch) | |
tree | 22feb9f10a6aeb5e8b02a31c681f537b8b75b446 | |
parent | b42e872236a62d527ee5a99abb0dbee1085e133e (diff) | |
download | dexon-ab6b87247328efbcf210e8287f56f6910e9a7162.tar dexon-ab6b87247328efbcf210e8287f56f6910e9a7162.tar.gz dexon-ab6b87247328efbcf210e8287f56f6910e9a7162.tar.bz2 dexon-ab6b87247328efbcf210e8287f56f6910e9a7162.tar.lz dexon-ab6b87247328efbcf210e8287f56f6910e9a7162.tar.xz dexon-ab6b87247328efbcf210e8287f56f6910e9a7162.tar.zst dexon-ab6b87247328efbcf210e8287f56f6910e9a7162.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), |