diff options
author | Jeffrey Wilcke <jeffrey@ethereum.org> | 2015-09-17 05:21:12 +0800 |
---|---|---|
committer | Jeffrey Wilcke <jeffrey@ethereum.org> | 2015-09-17 05:21:12 +0800 |
commit | 58fbcaa750aaa51d349ef28d98b58c9a0cfeee31 (patch) | |
tree | cd35b0006f976fa3f88910e70abdc1c4d1638ffc /miner/worker.go | |
parent | 985b5f29ed18eac6a36d569edbde6dcfde8d1ab0 (diff) | |
parent | 821619e1c356df092f2d82cea0d98996765f3933 (diff) | |
download | go-tangerine-58fbcaa750aaa51d349ef28d98b58c9a0cfeee31.tar go-tangerine-58fbcaa750aaa51d349ef28d98b58c9a0cfeee31.tar.gz go-tangerine-58fbcaa750aaa51d349ef28d98b58c9a0cfeee31.tar.bz2 go-tangerine-58fbcaa750aaa51d349ef28d98b58c9a0cfeee31.tar.lz go-tangerine-58fbcaa750aaa51d349ef28d98b58c9a0cfeee31.tar.xz go-tangerine-58fbcaa750aaa51d349ef28d98b58c9a0cfeee31.tar.zst go-tangerine-58fbcaa750aaa51d349ef28d98b58c9a0cfeee31.zip |
Merge pull request #1810 from karalabe/pure-header-verifications-2
core, eth, miner: use pure header validation
Diffstat (limited to 'miner/worker.go')
-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 96c42c292..22d0b9b6e 100644 --- a/miner/worker.go +++ b/miner/worker.go @@ -279,7 +279,7 @@ func (self *worker) wait() { glog.V(logger.Error).Infoln("Invalid block found during mining") continue } - if err := core.ValidateHeader(self.eth.BlockProcessor().Pow, block.Header(), parent, true, false); err != nil && err != core.BlockFutureErr { + if err := core.ValidateHeader(self.eth.BlockProcessor().Pow, block.Header(), parent.Header(), true, false); err != nil && err != core.BlockFutureErr { glog.V(logger.Error).Infoln("Invalid header on mined block:", err) continue } |