Commit 0ed7592eed60fb3c0afcca98b9946f26de3c12d1

Con Kolivas 2014-03-17T23:11:39

Make new block detection message not show in gbt solo from test_work_current

diff --git a/cgminer.c b/cgminer.c
index ee28fce..af26d86 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -4691,7 +4691,7 @@ static bool test_work_current(struct work *work)
 			}
 		} else if (have_longpoll)
 			applog(LOG_NOTICE, "New block detected on network before pool notification");
-		else
+		else if (!pool->gbt_solo)
 			applog(LOG_NOTICE, "New block detected on network");
 		restart_threads();
 	} else {
@@ -7864,9 +7864,6 @@ retry_pool:
 		goto out;
 	}
 
-	/* Any longpoll from any pool is enough for this to be true */
-	have_longpoll = true;
-
 	if (pool->gbt_solo) {
 		applog(LOG_WARNING, "Block change for %s detection via getblockcount polling",
 		       cp->rpc_url);
@@ -7902,6 +7899,9 @@ retry_pool:
 		}
 	}
 
+	/* Any longpoll from any pool is enough for this to be true */
+	have_longpoll = true;
+
 	wait_lpcurrent(cp);
 
 	if (pool->has_gbt) {