diff options
author | Gustav Simonsson <gustav.simonsson@gmail.com> | 2015-06-30 15:13:16 +0800 |
---|---|---|
committer | Gustav Simonsson <gustav.simonsson@gmail.com> | 2015-06-30 16:52:11 +0800 |
commit | 4c490db6afeb5a48d3e8d1d65ea8ddc9811d0a6d (patch) | |
tree | 4bb5055690cae276a5480572b463cd06fa219f23 /core/chain_makers.go | |
parent | be935bff84d54cd7a7f4074e2326d62f664ba4e3 (diff) | |
download | go-tangerine-4c490db6afeb5a48d3e8d1d65ea8ddc9811d0a6d.tar.gz go-tangerine-4c490db6afeb5a48d3e8d1d65ea8ddc9811d0a6d.tar.zst go-tangerine-4c490db6afeb5a48d3e8d1d65ea8ddc9811d0a6d.zip |
Use uint64 for block header timestamp
Diffstat (limited to 'core/chain_makers.go')
-rw-r--r-- | core/chain_makers.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/chain_makers.go b/core/chain_makers.go index 72ae7970e..013251d74 100644 --- a/core/chain_makers.go +++ b/core/chain_makers.go @@ -155,7 +155,7 @@ func makeHeader(parent *types.Block, state *state.StateDB) *types.Header { Root: state.Root(), ParentHash: parent.Hash(), Coinbase: parent.Coinbase(), - Difficulty: CalcDifficulty(time, parent.Time(), parent.Difficulty()), + Difficulty: CalcDifficulty(int64(time), int64(parent.Time()), parent.Difficulty()), GasLimit: CalcGasLimit(parent), GasUsed: new(big.Int), Number: new(big.Int).Add(parent.Number(), common.Big1), |