Browse Source

prevent the creation of incomplete wallets

283
ThomasV 12 years ago
parent
commit
5aa18c4bb5
  1. 4
      lib/simple_config.py

4
lib/simple_config.py

@ -206,6 +206,10 @@ a SimpleConfig instance then reads the wallet file.
def save_wallet_config(self): 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) s = repr(self.wallet_config)
f = open(self.path,"w") f = open(self.path,"w")
f.write( s ) f.write( s )

Loading…
Cancel
Save