don't use assert is is_xprv (weird kivy bug)
This commit is contained in:
parent
fe32d051d1
commit
4f0631d78d
|
@ -1987,8 +1987,9 @@ class Wallet(object):
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def is_xpub(text):
|
def is_xpub(text):
|
||||||
|
if text[0:4] != 'xpub':
|
||||||
|
return False
|
||||||
try:
|
try:
|
||||||
assert text[0:4] == 'xpub'
|
|
||||||
deserialize_xkey(text)
|
deserialize_xkey(text)
|
||||||
return True
|
return True
|
||||||
except:
|
except:
|
||||||
|
@ -1996,8 +1997,9 @@ class Wallet(object):
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def is_xprv(text):
|
def is_xprv(text):
|
||||||
|
if text[0:4] != 'xprv':
|
||||||
|
return False
|
||||||
try:
|
try:
|
||||||
assert text[0:4] == 'xprv'
|
|
||||||
deserialize_xkey(text)
|
deserialize_xkey(text)
|
||||||
return True
|
return True
|
||||||
except:
|
except:
|
||||||
|
|
Loading…
Reference in New Issue