mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-08 22:08:02 +00:00
Reinstate block solve testing.
This commit is contained in:
parent
3f6b9d6796
commit
36c6da8ad4
@ -6092,6 +6092,14 @@ static void update_work_stats(struct thr_info *thr, struct work *work)
|
||||
{
|
||||
work->share_diff = share_diff(work);
|
||||
|
||||
if (unlikely(work->share_diff >= current_diff)) {
|
||||
work->block = true;
|
||||
work->pool->solved++;
|
||||
found_blocks++;
|
||||
work->mandatory = true;
|
||||
applog(LOG_NOTICE, "Found block for pool %d!", work->pool->pool_no);
|
||||
}
|
||||
|
||||
mutex_lock(&stats_lock);
|
||||
total_diff1 += work->device_diff;
|
||||
thr->cgpu->diff1 += work->device_diff;
|
||||
|
Loading…
Reference in New Issue
Block a user