mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-11 07:17:58 +00:00
Check share target diff for best_share to be calculated when solo mining.
This commit is contained in:
parent
7993095ec3
commit
38eb4ee43b
@ -5363,8 +5363,15 @@ static bool hashtest(struct thr_info *thr, struct work *work)
|
||||
}
|
||||
|
||||
bool test = fulltest(work->hash, work->target);
|
||||
if (!test)
|
||||
if (!test) {
|
||||
applog(LOG_INFO, "Share below target");
|
||||
/* Check the diff of the share, even if it didn't reach the
|
||||
* target, just to set the best share value if it's higher. */
|
||||
if (opt_scrypt)
|
||||
scrypt_diff(work);
|
||||
else
|
||||
share_diff(work);
|
||||
}
|
||||
|
||||
return test;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user