Commit 53b33c8f18cc065fd0b61c2af7b78371f4162d58

Con Kolivas 2013-10-14T17:46:58

Limit max diff internally used by hashfast driver to 256 to still get some nonces back to check for errors if mining at very high diff.

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/driver-hashfast.c b/driver-hashfast.c
index 2d96b0e..e264832 100644
--- a/driver-hashfast.c
+++ b/driver-hashfast.c
@@ -507,6 +507,7 @@ struct device_drv hashfast_drv = {
 	.drv_id = DRIVER_hashfast,
 	.dname = "Hashfast",
 	.name = "HFA",
+	.max_diff = 256.0, // Limit max diff to get some nonces back regardless
 	.drv_detect = hashfast_detect,
 	.thread_prepare = hashfast_prepare,
 	.hash_work = &hash_driver_work,