submit all merged mining solutions when debug mode is enabled
authorForrest Voight <forrest@forre.st>
Sun, 18 Dec 2011 17:39:27 +0000 (12:39 -0500)
committerForrest Voight <forrest@forre.st>
Sun, 18 Dec 2011 17:39:27 +0000 (12:39 -0500)
p2pool/main.py

index a2b407e..7208572 100644 (file)
@@ -488,7 +488,7 @@ def main(args, net, datadir_path):
                         print 'GOT BLOCK! Passing to bitcoind! bitcoin: %x' % (hash_,)
                         print
                 
-                if current_work.value['aux_work'] is not None and pow_hash <= current_work.value['aux_work']['target']:
+                if current_work.value['aux_work'] is not None and (pow_hash <= current_work.value['aux_work']['target'] or p2pool.DEBUG):
                     try:
                         aux_pow = dict(
                             merkle_tx=dict(