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 /miner | |
parent | 56219a5e7a9ed4762870a891bf962558ee846b74 (diff) | |
download | go-tangerine-71d32f54f70917c53fd3a691cface3bc73ffa1b7.tar.gz go-tangerine-71d32f54f70917c53fd3a691cface3bc73ffa1b7.tar.zst go-tangerine-71d32f54f70917c53fd3a691cface3bc73ffa1b7.zip |
core, miner: added difficulty bomb
Diffstat (limited to 'miner')
-rw-r--r-- | miner/worker.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/miner/worker.go b/miner/worker.go index 7fb40af78..d6d96601e 100644 --- a/miner/worker.go +++ b/miner/worker.go @@ -444,7 +444,7 @@ func (self *worker) commitNewWork() { header := &types.Header{ ParentHash: parent.Hash(), Number: num.Add(num, common.Big1), - Difficulty: core.CalcDifficulty(uint64(tstamp), parent.Time(), parent.Difficulty()), + Difficulty: core.CalcDifficulty(uint64(tstamp), parent.Time(), parent.Number(), parent.Difficulty()), GasLimit: core.CalcGasLimit(parent), GasUsed: new(big.Int), Coinbase: self.coinbase, |