Browse Source

strip whitespaces from seed

283
ThomasV 11 years ago
parent
commit
79309c9625
  1. 4
      lib/wallet.py

4
lib/wallet.py

@ -1702,8 +1702,10 @@ class OldWallet(Wallet):
self.seed_version = 4
# see if seed was entered as hex
seed = seed.strip()
try:
seed.strip().decode('hex')
assert seed
seed.decode('hex')
self.seed = str(seed)
return
except Exception:

Loading…
Cancel
Save