aboutsummaryrefslogtreecommitdiffstats
path: root/consensus
diff options
context:
space:
mode:
authorJeffrey Wilcke <jeffrey@ethereum.org>2017-05-13 03:35:45 +0800
committerJeffrey Wilcke <jeffrey@ethereum.org>2017-05-18 15:05:58 +0800
commita5f6a1cb7c5e5dde130391e9bed7625ef9ff36b5 (patch)
tree251d24c632d746ad32af6874fe115b1e86ae9b03 /consensus
parente6aff513dbe04b105db1ae44501c1732a7ab7af3 (diff)
downloadgo-tangerine-a5f6a1cb7c5e5dde130391e9bed7625ef9ff36b5.tar
go-tangerine-a5f6a1cb7c5e5dde130391e9bed7625ef9ff36b5.tar.gz
go-tangerine-a5f6a1cb7c5e5dde130391e9bed7625ef9ff36b5.tar.bz2
go-tangerine-a5f6a1cb7c5e5dde130391e9bed7625ef9ff36b5.tar.lz
go-tangerine-a5f6a1cb7c5e5dde130391e9bed7625ef9ff36b5.tar.xz
go-tangerine-a5f6a1cb7c5e5dde130391e9bed7625ef9ff36b5.tar.zst
go-tangerine-a5f6a1cb7c5e5dde130391e9bed7625ef9ff36b5.zip
consensus, core, core/vm, parems: review fixes
Diffstat (limited to 'consensus')
-rw-r--r--consensus/ethash/consensus.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/consensus/ethash/consensus.go b/consensus/ethash/consensus.go
index fc5269abe..a6c1432e3 100644
--- a/consensus/ethash/consensus.go
+++ b/consensus/ethash/consensus.go
@@ -315,7 +315,7 @@ func calcDifficultyHomestead(time uint64, parent *types.Header) *big.Int {
// (parent_diff / 2048 * max(1 - (block_timestamp - parent_timestamp) // 10, -99))
// ) + 2^(periodCount - 2)
- bigTime := new(big.Int).Set(time)
+ bigTime := new(big.Int).SetUint64(time)
bigParentTime := new(big.Int).Set(parent.Time)
// holds intermediate values to make the algo easier to read & audit