mirror of
https://github.com/GOSTSec/sgminer
synced 2025-02-02 10:04:33 +00:00
Fix CPU mining with other algorithms not working.
This commit is contained in:
parent
a7707a26cb
commit
0c49935250
@ -116,12 +116,12 @@ bool scanhash_cryptopp(int thr_id, const unsigned char *midstate,
|
|||||||
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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -70,12 +70,12 @@ bool scanhash_via(int thr_id, unsigned char *data_inout,
|
|||||||
dout32[i] = swab32(data32[i]);
|
dout32[i] = swab32(data32[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
*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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user