1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-23 04:54:26 +00:00

Only show long-poll message in pool summary if it's not using stratum.

This commit is contained in:
Con Kolivas 2013-09-07 19:02:38 +10:00
parent 5b378f443a
commit a41660f2f0

View File

@ -3952,7 +3952,8 @@ static void display_pool_summary(struct pool *pool)
wlog("Pool: %s\n", pool->rpc_url); wlog("Pool: %s\n", pool->rpc_url);
if (pool->solved) if (pool->solved)
wlog("SOLVED %d BLOCK%s!\n", pool->solved, pool->solved > 1 ? "S" : ""); wlog("SOLVED %d BLOCK%s!\n", pool->solved, pool->solved > 1 ? "S" : "");
wlog("%s own long-poll support\n", pool->hdr_path ? "Has" : "Does not have"); if (!pool->has_stratum)
wlog("%s own long-poll support\n", pool->hdr_path ? "Has" : "Does not have");
wlog(" Queued work requests: %d\n", pool->getwork_requested); wlog(" Queued work requests: %d\n", pool->getwork_requested);
wlog(" Share submissions: %d\n", pool->accepted + pool->rejected); wlog(" Share submissions: %d\n", pool->accepted + pool->rejected);
wlog(" Accepted shares: %d\n", pool->accepted); wlog(" Accepted shares: %d\n", pool->accepted);