aboutsummaryrefslogtreecommitdiffstats
path: root/miner
diff options
context:
space:
mode:
authorJeffrey Wilcke <jeffrey@ethereum.org>2015-09-17 05:21:12 +0800
committerJeffrey Wilcke <jeffrey@ethereum.org>2015-09-17 05:21:12 +0800
commit58fbcaa750aaa51d349ef28d98b58c9a0cfeee31 (patch)
treecd35b0006f976fa3f88910e70abdc1c4d1638ffc /miner
parent985b5f29ed18eac6a36d569edbde6dcfde8d1ab0 (diff)
parent821619e1c356df092f2d82cea0d98996765f3933 (diff)
downloadgo-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')
-rw-r--r--miner/worker.go2
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
}