Commit c7c838d7805c87793ac878670f440d4ee131a365

Con Kolivas 2011-12-30T11:30:14

Give warning with donor pool so as to explain why there may be a slow startup.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
diff --git a/main.c b/main.c
index ad1bd27..30da2b8 100644
--- a/main.c
+++ b/main.c
@@ -3954,8 +3954,12 @@ static bool pool_active(struct pool *pool, bool pinging)
 	} else {
 		applog(LOG_DEBUG, "FAILED to retrieve work from pool %u %s",
 		       pool->pool_no, pool->rpc_url);
-		if (!pinging && pool != &donationpool)
-			applog(LOG_WARNING, "Pool %u slow/down or URL or credentials invalid", pool->pool_no);
+		if (!pinging) {
+			if (!donor(pool))
+				applog(LOG_WARNING, "Pool %u slow/down or URL or credentials invalid", pool->pool_no);
+			else
+				applog(LOG_WARNING, "Donor pool slow to respond");
+		}
 	}
 
 	curl_easy_cleanup(curl);