fix: imported_account

This commit is contained in:
ThomasV 2014-05-02 12:41:37 +02:00
parent 2a938ad516
commit 0536f256cf
1 changed files with 2 additions and 3 deletions

View File

@ -177,7 +177,6 @@ class Abstract_Wallet:
self.addressbook = storage.get('contacts', []) self.addressbook = storage.get('contacts', [])
self.imported_keys = storage.get('imported_keys',{}) self.imported_keys = storage.get('imported_keys',{})
self.imported_account = ImportedAccount(self.imported_keys)
self.history = storage.get('addr_history',{}) # address -> list(txid, height) self.history = storage.get('addr_history',{}) # address -> list(txid, height)
@ -1132,7 +1131,7 @@ class Imported_Wallet(Abstract_Wallet):
assert address == k assert address == k
def get_accounts(self): def get_accounts(self):
return { -1:self.imported_account } return { -1: ImportedAccount(self.imported_keys) }
@ -1381,7 +1380,7 @@ class Deterministic_Wallet(Abstract_Wallet):
def get_accounts(self): def get_accounts(self):
out = sorted(self.accounts.items()) out = sorted(self.accounts.items())
if self.imported_keys: if self.imported_keys:
out.append( (-1, self.imported_account )) out.append( (-1, ImportedAccount(self.imported_keys) ))
return dict(out) return dict(out)