fixed header_hash being undeclared in submit_block_p2p
authorForrest Voight <forrest.voight@gmail.com>
Tue, 8 May 2012 23:18:22 +0000 (19:18 -0400)
committerForrest Voight <forrest.voight@gmail.com>
Tue, 8 May 2012 23:18:31 +0000 (19:18 -0400)
p2pool/main.py

index fa55a59..7d5e396 100644 (file)
@@ -300,7 +300,7 @@ def main(args, net, datadir_path, merged_urls, worker_endpoint):
         @deferral.retry('Error submitting primary block: (will retry)', 10, 10)
         def submit_block_p2p(block):
             if factory.conn.value is None:
-                print >>sys.stderr, 'No bitcoind connection when block submittal attempted! %s%32x' % (net.PARENT.BLOCK_EXPLORER_URL_PREFIX, header_hash)
+                print >>sys.stderr, 'No bitcoind connection when block submittal attempted! %s%32x' % (net.PARENT.BLOCK_EXPLORER_URL_PREFIX, bitcoin_data.hash256(bitcoin_data.block_header_type.pack(block['header'])))
                 raise deferral.RetrySilentlyException()
             factory.conn.value.send_block(block=block)