Commit e1b4aa980ca6fafeac5933639cc38a56f29e279a

Con Kolivas 2013-10-25T14:42:35

Merge branch 'master' into hashfast

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git a/cgminer.c b/cgminer.c
index 8887312..b05e0e0 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -3590,6 +3590,12 @@ static void _copy_work(struct work *work, const struct work *base_work, int noff
 			work->ntime = offset_ntime(base_work->ntime, noffset);
 		} else
 			work->ntime = strdup(base_work->ntime);
+	} else if (noffset) {
+		uint32_t *work_ntime = (uint32_t *)(work->data + 68);
+		uint32_t ntime = be32toh(*work_ntime);
+
+		ntime += noffset;
+		*work_ntime = htobe32(ntime);
 	}
 	if (base_work->coinbase)
 		work->coinbase = strdup(base_work->coinbase);