fixed checking mm work against incorrect target when mining on multiple mm chains
authorForrest Voight <forrest@forre.st>
Sat, 28 Jul 2012 21:40:15 +0000 (17:40 -0400)
committerForrest Voight <forrest@forre.st>
Sat, 28 Jul 2012 21:40:26 +0000 (17:40 -0400)
p2pool/work.py

index 856a894..5aeee7e 100644 (file)
@@ -284,7 +284,7 @@ class WorkerBridge(worker_interface.WorkerBridge):
                             )).encode('hex'),
                         )
                         @df.addCallback
-                        def _(result):
+                        def _(result, aux_work=aux_work):
                             if result != (pow_hash <= aux_work['target']):
                                 print >>sys.stderr, 'Merged block submittal result: %s Expected: %s' % (result, pow_hash <= aux_work['target'])
                             else: