tprevent the creation of incomplete wallets - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 5aa18c4bb5ea406e784d023272522bee4f09cf6d DIR parent b46d5805bf9f31e1edaab37d565f06a2f6d75374 HTML Author: ThomasV <thomasv@gitorious> Date: Wed, 27 Feb 2013 23:07:30 +0100 prevent the creation of incomplete wallets Diffstat: M lib/simple_config.py | 4 ++++ 1 file changed, 4 insertions(+), 0 deletions(-) --- DIR diff --git a/lib/simple_config.py b/lib/simple_config.py t@@ -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 )