aboutsummaryrefslogtreecommitdiffstats
path: root/miner/agent.go
diff options
context:
space:
mode:
Diffstat (limited to 'miner/agent.go')
-rw-r--r--miner/agent.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/miner/agent.go b/miner/agent.go
index 6c21d8015..6865d5a08 100644
--- a/miner/agent.go
+++ b/miner/agent.go
@@ -75,7 +75,7 @@ done:
func (self *CpuMiner) mine(block *types.Block) {
minerlogger.Infof("(re)started agent[%d]. mining...\n", self.index)
nonce, mixDigest, seedHash := self.pow.Search(block, self.quitCurrentOp)
- if nonce != nil {
+ if nonce != 0 {
self.returnCh <- Work{block.Number().Uint64(), nonce, mixDigest, seedHash}
}
}