git://git.novaco.in
/
electrum-nvc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
6dfeb90
)
strip whitespaces from seed
author
ThomasV
<thomasv@gitorious>
Tue, 11 Feb 2014 14:27:28 +0000 (15:27 +0100)
committer
ThomasV
<thomasv@gitorious>
Tue, 11 Feb 2014 14:27:28 +0000 (15:27 +0100)
lib/wallet.py
patch
|
blob
|
history
diff --git
a/lib/wallet.py
b/lib/wallet.py
index
37b4112
..
b80ad9e
100644
(file)
--- a/
lib/wallet.py
+++ b/
lib/wallet.py
@@
-308,14
+308,11
@@
class Wallet:
self.seed_version = 4
return
- #if not seed:
- # self.seed = self.make_seed()
- # self.seed_version = SEED_VERSION
- # return
-
- # find out what kind of wallet we are
+ # check if seed is hexadecimal
+ seed = seed.strip()
try:
- seed.strip().decode('hex')
+ assert seed
+ seed.decode('hex')
self.seed_version = 4
self.seed = str(seed)
return