add_keypairs: simplification
authorThomasV <thomasv@gitorious>
Sun, 6 Jul 2014 20:10:26 +0000 (22:10 +0200)
committerThomasV <thomasv@gitorious>
Sun, 6 Jul 2014 20:10:26 +0000 (22:10 +0200)
lib/wallet.py

index a3dbdf7..951b50b 100644 (file)
@@ -410,9 +410,7 @@ class Abstract_Wallet:
                     break
             else:
                 continue
-
-            addr = account.get_address(*sequence)
-            pk = self.get_private_key(addr, password)
+            pk = account.get_private_key(sequence, self, password)
             for sec in pk:
                 pubkey = public_key_from_private_key(sec)
                 keypairs[pubkey] = sec