From 9ad16ec01ef50c60703905a982d2a6decc883675 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Sun, 13 May 2012 02:36:44 +0200 Subject: [PATCH] deseed: error if wallet is encrypted --- electrum | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/electrum b/electrum index 85348ca8c..a975cb218 100755 --- a/electrum +++ b/electrum @@ -249,7 +249,9 @@ if __name__ == '__main__': elif cmd == 'deseed': if not wallet.seed: - print "This wallet has no seed" + print "Eooro: This wallet has no seed" + elif wallet.use_encryption: + print "Error: This wallet is encrypted" else: ns = options.wallet_path+'.seed' print "Warning: you are going to extract the seed from '%s'\nThe seed will be saved in '%s'"%(options.wallet_path,ns) @@ -258,7 +260,6 @@ if __name__ == '__main__': f.write(wallet.seed) f.close() wallet.seed = '' - wallet.use_encryption = False wallet.save() print "Done." else: