Commit d49ecf198e5a0b4c2ea9f639543de8050a00b15a

Con Kolivas 2013-04-18T17:22:38

Set opt_scrypt drv max diff for correctness.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/driver-cpu.c b/driver-cpu.c
index 2f72abc..8f8b0d1 100644
--- a/driver-cpu.c
+++ b/driver-cpu.c
@@ -763,6 +763,8 @@ static void cpu_detect()
 		cgpu->deven = DEV_ENABLED;
 		cgpu->threads = 1;
 		cgpu->kname = algo_names[opt_algo];
+		if (opt_scrypt)
+			cgpu->drv->max_diff = 0xffffffff;
 		add_cgpu(cgpu);
 	}
 }