git://git.novaco.in
/
electrum-nvc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
b46d580
)
prevent the creation of incomplete wallets
author
ThomasV
<thomasv@gitorious>
Wed, 27 Feb 2013 22:07:30 +0000 (23:07 +0100)
committer
ThomasV
<thomasv@gitorious>
Wed, 27 Feb 2013 22:07:30 +0000 (23:07 +0100)
lib/simple_config.py
patch
|
blob
|
history
diff --git
a/lib/simple_config.py
b/lib/simple_config.py
index
8cfa24d
..
8927b28
100644
(file)
--- a/
lib/simple_config.py
+++ b/
lib/simple_config.py
@@
-206,6
+206,10
@@
a SimpleConfig instance then reads the wallet file.
def save_wallet_config(self):
+ # prevent the creation of incomplete wallets
+ if self.wallet_config.get('master_public_key') is None:
+ return
+
s = repr(self.wallet_config)
f = open(self.path,"w")
f.write( s )