mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-01 17:55:20 +00:00
do not import dns on android
This commit is contained in:
parent
3f1e4ae3b1
commit
f583fcfedb
2 changed files with 3 additions and 1 deletions
3
electrum
3
electrum
|
@ -37,7 +37,8 @@ elif is_bundle and sys.platform=='darwin':
|
|||
|
||||
# pure-python dependencies need to be imported here for pyinstaller
|
||||
try:
|
||||
import dns
|
||||
if not is_android:
|
||||
import dns
|
||||
import aes
|
||||
import ecdsa
|
||||
import requests
|
||||
|
|
|
@ -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…
Add table
Reference in a new issue