Integrate new ethash API and change geth makedag cmd

This commit is contained in:
Gustav Simonsson
2015-05-05 08:24:15 +02:00
parent 50659f4b48
commit b1cc9cdc74
9 changed files with 41 additions and 27 deletions

View File

@ -85,7 +85,7 @@ func (self *CpuMiner) mine(block *types.Block) {
self.chMu.Unlock()
// Mine
nonce, mixDigest, _ := self.pow.Search(block, self.quitCurrentOp)
nonce, mixDigest := self.pow.Search(block, self.quitCurrentOp)
if nonce != 0 {
block.SetNonce(nonce)
block.Header().MixDigest = common.BytesToHash(mixDigest)