|
@@ -261,12 +261,12 @@ bool scanhash_c(int thr_id, const unsigned char *midstate, unsigned char *data,
|
|
|
stat_ctr++;
|
|
stat_ctr++;
|
|
|
|
|
|
|
|
if (unlikely((hash32[7] == 0) && fulltest(hash, target))) {
|
|
if (unlikely((hash32[7] == 0) && fulltest(hash, target))) {
|
|
|
- *hashes_done = stat_ctr;
|
|
|
|
|
|
|
+ *hashes_done = n;
|
|
|
return true;
|
|
return true;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
if ((n >= max_nonce) || work_restart[thr_id].restart) {
|
|
if ((n >= max_nonce) || work_restart[thr_id].restart) {
|
|
|
- *hashes_done = stat_ctr;
|
|
|
|
|
|
|
+ *hashes_done = n;
|
|
|
return false;
|
|
return false;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|