1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-02-05 03:24:26 +00:00

Enable backup stratum connections for getwork when the primary pool doesn't have longpoll aka solo mining.

This commit is contained in:
Con Kolivas 2012-12-03 16:45:43 +11:00
parent 289d6807ef
commit 401357e657

View File

@ -4697,7 +4697,7 @@ static bool cnx_needed(struct pool *pool)
cp = current_pool();
if (cp == pool)
return true;
if (!cp->has_gbt && !cp->has_stratum && !opt_fail_only)
if (!cp->has_gbt && !cp->has_stratum && (!opt_fail_only || !cp->hdr_path))
return true;
return false;
}