Fix share counting

This commit is contained in:
Sammy Libre 2016-12-07 01:32:57 +05:00
parent 4332be5f1c
commit 90e04346d9

View File

@ -191,6 +191,5 @@ func (m *Miner) processShare(s *StratumServer, e *Endpoint, job *Job, t *BlockTe
}
log.Printf("Valid share at difficulty %v/%v", e.config.Difficulty, hashDiff)
atomic.AddUint64(&m.validShares, 1)
return true
}