fixed missing import in p2pool.data
authorForrest Voight <forrest@forre.st>
Wed, 2 May 2012 02:01:16 +0000 (22:01 -0400)
committerForrest Voight <forrest@forre.st>
Wed, 2 May 2012 02:51:00 +0000 (22:51 -0400)
p2pool/data.py

index cdf2076..8db14c6 100644 (file)
@@ -218,6 +218,7 @@ class Share(object):
         self.hash = self.header_hash = bitcoin_data.hash256(bitcoin_data.block_header_type.pack(self.header))
         
         if self.pow_hash > self.target:
+            from p2pool import p2p
             raise p2p.PeerMisbehavingError('share PoW invalid')
         
         if other_txs is not None and not self.pow_hash <= self.header['bits'].target: