aboutsummaryrefslogtreecommitdiffstats
path: root/miner
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2015-09-16 15:44:09 +0800
committerPéter Szilágyi <peterke@gmail.com>2015-09-16 15:46:28 +0800
commit821619e1c356df092f2d82cea0d98996765f3933 (patch)
tree6b7b637c41f6f20c2c78ab484cf37ed5e2c58f97 /miner
parente9a80518c72e0d5b2da7246a865f4dc4baab2cf9 (diff)
downloaddexon-821619e1c356df092f2d82cea0d98996765f3933.tar
dexon-821619e1c356df092f2d82cea0d98996765f3933.tar.gz
dexon-821619e1c356df092f2d82cea0d98996765f3933.tar.bz2
dexon-821619e1c356df092f2d82cea0d98996765f3933.tar.lz
dexon-821619e1c356df092f2d82cea0d98996765f3933.tar.xz
dexon-821619e1c356df092f2d82cea0d98996765f3933.tar.zst
dexon-821619e1c356df092f2d82cea0d98996765f3933.zip
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 2f43b110f..7ad7475ea 100644
--- a/miner/worker.go
+++ b/miner/worker.go
@@ -278,7 +278,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
}