subscribe to imported address
authorthomasv <thomasv@gitorious>
Sun, 15 Sep 2013 13:06:42 +0000 (15:06 +0200)
committerthomasv <thomasv@gitorious>
Sun, 15 Sep 2013 13:06:42 +0000 (15:06 +0200)
lib/wallet.py

index b30d519..d768a20 100644 (file)
@@ -242,6 +242,8 @@ class Wallet:
         # store the originally requested keypair into the imported keys table
         self.imported_keys[address] = pw_encode(sec, password )
         self.storage.put('imported_keys', self.imported_keys, True)
+        if self.synchronizer:
+            self.synchronizer.subscribe_to_addresses([address])
         return address
         
     def delete_imported_key(self, addr):