From b0b8a5ec6bcdbeca098ebd1a79e37509c8040826 Mon Sep 17 00:00:00 2001 From: thomasv Date: Tue, 21 Feb 2012 16:01:08 +0100 Subject: [PATCH] sanity check --- client/wallet.py | 1 + 1 file changed, 1 insertion(+) diff --git a/client/wallet.py b/client/wallet.py index aaf3fbb65..331604f14 100644 --- a/client/wallet.py +++ b/client/wallet.py @@ -287,6 +287,7 @@ class Wallet: def import_key(self, keypair, password): address, key = keypair.split(':') if not self.is_valid(address): return False + if address in self.all_addresses(): return False b = ASecretToSecret( key ) if not b: return False secexp = int( b.encode('hex'), 16)