Commit af7368daca0498bc8aa3da66828d0e9a50328829

Con Kolivas 2012-02-21T16:43:24

Don't make rolled work from the longpoll be seen as other longpoll work items.

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/cgminer.c b/cgminer.c
index 24bc050..8a38523 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -3503,6 +3503,7 @@ static void convert_to_work(json_t *val, bool rolltime, struct pool *pool)
 	memcpy(work_clone, work, sizeof(struct work));
 	while (reuse_work(work)) {
 		work_clone->clone = true;
+		work_clone->longpoll = false;
 		applog(LOG_DEBUG, "Pushing rolled converted work to stage thread");
 		if (unlikely(!stage_work(work_clone)))
 			break;