Browse Source

do not import dns on android

283
ThomasV 9 years ago
parent
commit
f583fcfedb
  1. 1
      electrum
  2. 1
      lib/bitcoin.py

1
electrum

@ -37,6 +37,7 @@ elif is_bundle and sys.platform=='darwin':
# pure-python dependencies need to be imported here for pyinstaller
try:
if not is_android:
import dns
import aes
import ecdsa

1
lib/bitcoin.py

@ -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()

Loading…
Cancel
Save