aboutsummaryrefslogtreecommitdiffstats
path: root/core/chain_makers.go
diff options
context:
space:
mode:
authorJeffrey Wilcke <geffobscura@gmail.com>2015-08-05 05:46:38 +0800
committerJeffrey Wilcke <geffobscura@gmail.com>2015-08-05 19:09:09 +0800
commit71d32f54f70917c53fd3a691cface3bc73ffa1b7 (patch)
tree71d50e187595fc6a57001599bcb22c389d96d174 /core/chain_makers.go
parent56219a5e7a9ed4762870a891bf962558ee846b74 (diff)
downloadgo-tangerine-71d32f54f70917c53fd3a691cface3bc73ffa1b7.tar.gz
go-tangerine-71d32f54f70917c53fd3a691cface3bc73ffa1b7.tar.zst
go-tangerine-71d32f54f70917c53fd3a691cface3bc73ffa1b7.zip
core, miner: added difficulty bomb
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 283653d9a..85a6175dc 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(time, parent.Time(), parent.Difficulty()),
+ Difficulty: CalcDifficulty(time, parent.Time(), parent.Number(), parent.Difficulty()),
GasLimit: CalcGasLimit(parent),
GasUsed: new(big.Int),
Number: new(big.Int).Add(parent.Number(), common.Big1),