fixed litecoin compatibility hack
authorForrest Voight <forrest.voight@gmail.com>
Thu, 24 Nov 2011 18:03:27 +0000 (13:03 -0500)
committerForrest Voight <forrest.voight@gmail.com>
Thu, 24 Nov 2011 18:03:27 +0000 (13:03 -0500)
p2pool/data.py

index 0a51836..20ac557 100644 (file)
@@ -148,7 +148,7 @@ class Share(object):
         
         self.bitcoin_hash = net.BITCOIN_POW_FUNC(header)
         
-        if net.BITCOIN_POW_FUNC is bitcoin_data.block_header_type.scrypt:
+        if net.BITCOIN_POW_FUNC == bitcoin_data.block_header_type.scrypt:
             # compatibility hack
             self.hash = share1a_type.scrypt(self.as_share1a())
         else: