From 5aa18c4bb5ea406e784d023272522bee4f09cf6d Mon Sep 17 00:00:00 2001 From: ThomasV Date: Wed, 27 Feb 2013 23:07:30 +0100 Subject: [PATCH] prevent the creation of incomplete wallets --- lib/simple_config.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/simple_config.py b/lib/simple_config.py index 8cfa24dd..8927b287 100644 --- 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 )