1
0

do not import dns on android

This commit is contained in:
ThomasV
2015-08-18 12:15:56 +02:00
parent 3f1e4ae3b1
commit f583fcfedb
2 changed files with 3 additions and 1 deletions

View File

@@ -201,6 +201,7 @@ def hash_160(public_key):
md.update(sha256(public_key))
return md.digest()
except Exception:
# not available in Android SL4a
import ripemd
md = ripemd.new(sha256(public_key))
return md.digest()