@ -2618,23 +2618,11 @@ static struct pool *select_balanced(struct pool *cp)
@@ -2618,23 +2618,11 @@ static struct pool *select_balanced(struct pool *cp)
returnret;
}
staticboolpool_unusable(structpool*pool)
{
if(pool->idle)
returntrue;
if(pool->enabled!=POOL_ENABLED)
returntrue;
if(pool->has_stratum&&!pool->stratum_active)
returntrue;
returnfalse;
}
/* Select any active pool in a rotating fashion when loadbalance is chosen */
staticinlinestructpool*select_pool(boollagging)
{
staticintrotating_pool=0;
structpool*pool,*cp;
inttested;
cp=current_pool();
@ -2646,19 +2634,14 @@ static inline struct pool *select_pool(bool lagging)
@@ -2646,19 +2634,14 @@ static inline struct pool *select_pool(bool lagging)
else
pool=NULL;
/* Try to find the first pool in the rotation that is usable */