1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-11 07:17:58 +00:00

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

This commit is contained in:
Con Kolivas 2012-11-06 09:43:55 +11:00
parent 75d0a45a10
commit 418d15deba

View File

@ -5864,7 +5864,8 @@ static void *watchpool_thread(void __maybe_unused *userdata)
* template if more than 30 seconds has elapsed since
* the last one to keep the data current and as a test
* 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))
pool_died(pool);
}