Skip to content

Commit

Permalink
Block found fix for x16s
Browse files Browse the repository at this point in the history
  • Loading branch information
KL0nLutiy committed Sep 9, 2018
1 parent 9f62ab4 commit 2720eca
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions sgminer.c
Original file line number Diff line number Diff line change
Expand Up @@ -7573,15 +7573,16 @@ bool test_nonce(struct work *work, uint32_t nonce)
static void update_work_stats(struct thr_info *thr, struct work *work)
{
double test_diff = current_diff;
test_diff *= work->pool->algorithm.share_diff_multiplier;

work->share_diff = share_diff(work);

if (unlikely(test_diff > 0 && work->share_diff >= test_diff)) {
work->block = true;
work->pool->solved++;
found_blocks++;
work->mandatory = true;
applog(LOG_NOTICE, "Found block for %s!", get_pool_name(work->pool));
work->block = true;
work->pool->solved++;
found_blocks++;
work->mandatory = true;
applog(LOG_NOTICE, "Found block for %s!", get_pool_name(work->pool));
}

mutex_lock(&stats_lock);
Expand Down

0 comments on commit 2720eca

Please sign in to comment.