From 380e0728429679ebbd84ca5f5f99ec547ae6724e Mon Sep 17 00:00:00 2001
From: ThomasV <thomasv@gitorious>
Date: Sat, 18 Jul 2015 11:00:41 +0200
Subject: [PATCH] fix bug with import_key

---
 lib/wallet.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/wallet.py b/lib/wallet.py
index f023db705..10db704fd 100644
--- a/lib/wallet.py
+++ b/lib/wallet.py
@@ -336,8 +336,8 @@ class Abstract_Wallet(object):
         self.save_accounts()
 
         # force resynchronization, because we need to re-run add_transaction
-        if addr in self.history:
-            self.history.pop(addr)
+        if address in self.history:
+            self.history.pop(address)
 
         if self.synchronizer:
             self.synchronizer.add(address)