1
0

Merge branch 'contacts' of github.com:Tafelpoot/electrum into Tafelpoot-contacts

This commit is contained in:
ThomasV
2014-11-24 11:55:57 +01:00
2 changed files with 48 additions and 15 deletions

View File

@@ -483,10 +483,10 @@ class Abstract_Wallet(object):
return addr_list
def get_account_from_address(self, addr):
"Returns the account that contains this address, or None"
"Returns the account name that contains this address, or None"
for acc_id in self.accounts: # similar to get_address_index but simpler
if addr in self.get_account_addresses(acc_id):
return self.accounts[acc_id]
return self.get_account_name(acc_id)
return None
def get_account_balance(self, account):