git://git.novaco.in
/
electrum-nvc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
043d6ad
)
raise exception if the method is used to overwrite the existing seed
author
ThomasV
<thomasv@gitorious>
Sun, 3 Feb 2013 14:12:40 +0000 (15:12 +0100)
committer
ThomasV
<thomasv@gitorious>
Sun, 3 Feb 2013 14:12:40 +0000 (15:12 +0100)
lib/wallet.py
patch
|
blob
|
history
diff --git
a/lib/wallet.py
b/lib/wallet.py
index
9efc814
..
817f206
100644
(file)
--- a/
lib/wallet.py
+++ b/
lib/wallet.py
@@
-142,6
+142,7
@@
class Wallet:
def init_seed(self, seed):
+ if self.seed: raise BaseException("a seed exists")
if not seed:
seed = "%032x"%ecdsa.util.randrange( pow(2,128) )
self.seed = seed