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