return imported addresses as sorted
authorThomasV <thomasv@gitorious>
Sun, 4 May 2014 11:54:53 +0000 (13:54 +0200)
committerThomasV <thomasv@gitorious>
Sun, 4 May 2014 11:54:53 +0000 (13:54 +0200)
lib/account.py

index 9fcad51..e2cb682 100644 (file)
@@ -71,7 +71,9 @@ class PendingAccount(Account):
 class ImportedAccount(Account):
     def __init__(self, d):
         self.addresses = d.keys()
-        self.change = []
+
+    def get_addresses(self, for_change):
+        return [] if for_change else sorted(self.addresses[:])
 
     def has_change(self):
         return False