core, eth, miner: use pure header validation

This commit is contained in:
Péter Szilágyi
2015-09-16 10:44:09 +03:00
parent e9a80518c7
commit 821619e1c3
4 changed files with 26 additions and 28 deletions

View File

@ -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
}