diff options
author | Jeffrey Wilcke <geffobscura@gmail.com> | 2015-08-05 05:46:38 +0800 |
---|---|---|
committer | Jeffrey Wilcke <geffobscura@gmail.com> | 2015-08-05 19:09:09 +0800 |
commit | 71d32f54f70917c53fd3a691cface3bc73ffa1b7 (patch) | |
tree | 71d50e187595fc6a57001599bcb22c389d96d174 /core/chain_makers.go | |
parent | 56219a5e7a9ed4762870a891bf962558ee846b74 (diff) | |
download | dexon-71d32f54f70917c53fd3a691cface3bc73ffa1b7.tar dexon-71d32f54f70917c53fd3a691cface3bc73ffa1b7.tar.gz dexon-71d32f54f70917c53fd3a691cface3bc73ffa1b7.tar.bz2 dexon-71d32f54f70917c53fd3a691cface3bc73ffa1b7.tar.lz dexon-71d32f54f70917c53fd3a691cface3bc73ffa1b7.tar.xz dexon-71d32f54f70917c53fd3a691cface3bc73ffa1b7.tar.zst dexon-71d32f54f70917c53fd3a691cface3bc73ffa1b7.zip |
core, miner: added difficulty bomb
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 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), |