Added BITCOIN_POW_FUNC to network definitions
[p2pool.git] / p2pool / bitcoin / data.py
index 3b8bb70..d4643a2 100644 (file)
@@ -105,12 +105,9 @@ class Type(object):
     
     def hash256(self, obj):
         return HashType().unpack(hashlib.sha256(hashlib.sha256(self.pack(obj)).digest()).digest())
-
-    ltc_scrypt = None
+    
     def scrypt(self, obj):
-        # dynamically import ltc_scrypt so you will only get an error on runtime
-        if (not self.ltc_scrypt):
-            self.ltc_scrypt = __import__('ltc_scrypt')
+        import ltc_scrypt
         return HashType().unpack(self.ltc_scrypt.getPoWHash(self.pack(obj)))
 
 class VarIntType(Type):