Changed cpuminer's maximum target to 2^256-1 to support Litecoin mining with Artforz...
authorForrest Voight <forrest@forre.st>
Sun, 11 Dec 2011 00:27:53 +0000 (19:27 -0500)
committerForrest Voight <forrest@forre.st>
Sun, 11 Dec 2011 00:27:53 +0000 (19:27 -0500)
Shouldn't interfere with anyone using it on the bitcoin chain, but still incorrect for stock cpuminer nonetheless.

p2pool/bitcoin/worker_interface.py

index 92dfe7d..853e15e 100644 (file)
@@ -35,7 +35,7 @@ def get_max_target(request): # inclusive
     user_agent = request.getHeader('User-Agent')
     user_agent2 = '' if user_agent is None else user_agent.lower()
     if 'java' in user_agent2 or 'diablominer' in user_agent2: return 2**256//2**32-1 # hopefully diablominer...
-    if 'cpuminer' in user_agent2: return 2**256//2**32-1
+    if 'cpuminer' in user_agent2: return 2**256-1
     if 'tenebrix miner' in user_agent2: return 2**256-1
     if 'cgminer' in user_agent2: return 2**256//2**32-1
     if 'poclbm' in user_agent2: return 2**256//2**32-1