aboutsummaryrefslogtreecommitdiffstats
path: root/core/chain_makers.go
diff options
context:
space:
mode:
authorGustav Simonsson <gustav.simonsson@gmail.com>2015-07-08 19:21:06 +0800
committerGustav Simonsson <gustav.simonsson@gmail.com>2015-07-08 19:21:06 +0800
commit5d6d40f329410f20d9ceb92d31985a883d94cb24 (patch)
treeda3fb90259dece012c9f4daa972b76542d4870d8 /core/chain_makers.go
parentb08abe64e4d2e3fa8d10c89647595226d6b31b19 (diff)
downloadgo-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 'core/chain_makers.go')
-rw-r--r--core/chain_makers.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/chain_makers.go b/core/chain_makers.go
index 07670608a..501fe7a92 100644
--- a/core/chain_makers.go
+++ b/core/chain_makers.go
@@ -171,7 +171,7 @@ func makeHeader(parent *types.Block, state *state.StateDB) *types.Header {
Root: state.Root(),
ParentHash: parent.Hash(),
Coinbase: parent.Coinbase(),
- Difficulty: CalcDifficulty(int64(time), int64(parent.Time()), parent.Difficulty()),
+ Difficulty: CalcDifficulty(time, parent.Time(), parent.Difficulty()),
GasLimit: CalcGasLimit(parent),
GasUsed: new(big.Int),
Number: new(big.Int).Add(parent.Number(), common.Big1),