Commit ff5c8a40434caa88144195615a28bd8e8533f41d

Con Kolivas 2014-03-10T17:03:27

Clear the pipe bitmap on cta only when no share has occurred for 2 hours instead of 1.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git a/driver-cointerra.c b/driver-cointerra.c
index 2ef1a85..7bb9471 100644
--- a/driver-cointerra.c
+++ b/driver-cointerra.c
@@ -937,10 +937,10 @@ static int64_t cta_scanwork(struct thr_info *thr)
 		age_queued_work(cointerra, 300.0);
 
 		/* Use this opportunity to unset the bits in any pipes that
-		 * have not returned a valid nonce for over an hour. */
+		 * have not returned a valid nonce for over 2 hours. */
 		now_t = time(NULL);
 		for (i = 0; i < 1024; i++) {
-			if (unlikely(now_t > info->last_pipe_nonce[i] + 3600)) {
+			if (unlikely(now_t > info->last_pipe_nonce[i] + 7200)) {
 				int bitchar = i / 8, bitbit = i % 8;
 
 				info->pipe_bitmap[bitchar] &= ~(0x80 >> bitbit);