prevent the creation of incomplete wallets

This commit is contained in:
ThomasV 2013-02-27 23:07:30 +01:00
parent b46d5805bf
commit 5aa18c4bb5
1 changed files with 4 additions and 0 deletions

View File

@ -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 )