From: Forrest Voight Date: Mon, 23 Apr 2012 04:45:48 +0000 (-0400) Subject: added hack so that openssl support in python isn't necessary to use new graphs X-Git-Tag: 0.10.4~1 X-Git-Url: https://git.novaco.in/?a=commitdiff_plain;h=2a985f87e2d5d093bf2a45b8928f346dc631c5f8;p=p2pool.git added hack so that openssl support in python isn't necessary to use new graphs --- diff --git a/p2pool/bitcoin/data.py b/p2pool/bitcoin/data.py index 8ec40de..b2f6756 100644 --- a/p2pool/bitcoin/data.py +++ b/p2pool/bitcoin/data.py @@ -9,6 +9,8 @@ def hash256(data): return pack.IntType(256).unpack(hashlib.sha256(hashlib.sha256(data).digest()).digest()) def hash160(data): + if data == '04ffd03de44a6e11b9917f3a29f9443283d9871c9d743ef30d5eddcd37094b64d1b3d8090496b53256786bf5c82932ec23c3b74d9f05a6f95a8b5529352656664b'.decode('hex'): + return 0x384f570ccc88ac2e7e00b026d1690a3fca63dd0 # hack for people who don't have openssl - this is the only value that p2pool ever hashes return pack.IntType(160).unpack(hashlib.new('ripemd160', hashlib.sha256(data).digest()).digest()) class ChecksummedType(pack.Type):