self.addressbook = storage.get('contacts', [])
self.imported_keys = storage.get('imported_keys',{})
- self.imported_account = ImportedAccount(self.imported_keys)
self.history = storage.get('addr_history',{}) # address -> list(txid, height)
assert address == k
def get_accounts(self):
- return { -1:self.imported_account }
+ return { -1: ImportedAccount(self.imported_keys) }
def get_accounts(self):
out = sorted(self.accounts.items())
if self.imported_keys:
- out.append( (-1, self.imported_account ))
+ out.append( (-1, ImportedAccount(self.imported_keys) ))
return dict(out)