electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 4f0631d78d3e923e3e60fb42a4d4442c199958b9
parent fe32d051d17814e587d5b28ec4973e2a1ba7b60b
Author: ThomasV <thomasv@electrum.org>
Date:   Sat, 16 Jan 2016 15:05:29 +0100

don't use assert is is_xprv (weird kivy bug)

Diffstat:
Mlib/wallet.py | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/lib/wallet.py b/lib/wallet.py @@ -1987,8 +1987,9 @@ class Wallet(object): @staticmethod def is_xpub(text): + if text[0:4] != 'xpub': + return False try: - assert text[0:4] == 'xpub' deserialize_xkey(text) return True except: @@ -1996,8 +1997,9 @@ class Wallet(object): @staticmethod def is_xprv(text): + if text[0:4] != 'xprv': + return False try: - assert text[0:4] == 'xprv' deserialize_xkey(text) return True except: