diff options
author | Gustav Simonsson <gustav.simonsson@gmail.com> | 2015-07-08 19:21:06 +0800 |
---|---|---|
committer | Gustav Simonsson <gustav.simonsson@gmail.com> | 2015-07-08 19:21:06 +0800 |
commit | 5d6d40f329410f20d9ceb92d31985a883d94cb24 (patch) | |
tree | da3fb90259dece012c9f4daa972b76542d4870d8 /miner | |
parent | b08abe64e4d2e3fa8d10c89647595226d6b31b19 (diff) | |
download | go-tangerine-5d6d40f329410f20d9ceb92d31985a883d94cb24.tar go-tangerine-5d6d40f329410f20d9ceb92d31985a883d94cb24.tar.gz go-tangerine-5d6d40f329410f20d9ceb92d31985a883d94cb24.tar.bz2 go-tangerine-5d6d40f329410f20d9ceb92d31985a883d94cb24.tar.lz go-tangerine-5d6d40f329410f20d9ceb92d31985a883d94cb24.tar.xz go-tangerine-5d6d40f329410f20d9ceb92d31985a883d94cb24.tar.zst go-tangerine-5d6d40f329410f20d9ceb92d31985a883d94cb24.zip |
Use uint64 on ts in chain_manager, block_processor
Diffstat (limited to 'miner')
-rw-r--r-- | miner/worker.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/miner/worker.go b/miner/worker.go index 79514b231..085721751 100644 --- a/miner/worker.go +++ b/miner/worker.go @@ -427,7 +427,7 @@ func (self *worker) commitNewWork() { header := &types.Header{ ParentHash: parent.Hash(), Number: num.Add(num, common.Big1), - Difficulty: core.CalcDifficulty(int64(tstamp), int64(parent.Time()), parent.Difficulty()), + Difficulty: core.CalcDifficulty(uint64(tstamp), parent.Time(), parent.Difficulty()), GasLimit: core.CalcGasLimit(parent), GasUsed: new(big.Int), Coinbase: self.coinbase, |