Browse Source

Only retrieve a new block template for GBT pools that are the current pool.

nfactor-troky
Con Kolivas 12 years ago
parent
commit
418d15deba
  1. 3
      cgminer.c

3
cgminer.c

@ -5864,7 +5864,8 @@ static void *watchpool_thread(void __maybe_unused *userdata)
* template if more than 30 seconds has elapsed since * template if more than 30 seconds has elapsed since
* the last one to keep the data current and as a test * the last one to keep the data current and as a test
* for when the pool dies. */ * for when the pool dies. */
if (!pool->idle && pool->has_gbt && now.tv_sec - pool->tv_template.tv_sec > 60) { if (!pool->idle && pool->has_gbt && pool == current_pool() &&
now.tv_sec - pool->tv_template.tv_sec > 60) {
if (!pool_active(pool, true)) if (!pool_active(pool, true))
pool_died(pool); pool_died(pool);
} }

Loading…
Cancel
Save