show many address labels in tx default label. fixes #1200

This commit is contained in:
ThomasV 2015-05-07 16:09:39 +02:00
parent 414d0e1fa1
commit 656560be72
1 changed files with 3 additions and 2 deletions

View File

@ -802,11 +802,12 @@ class Abstract_Wallet(object):
def get_default_label(self, tx_hash):
if self.txi.get(tx_hash) == {}:
d = self.txo.get(tx_hash, {})
labels = []
for addr in d.keys():
assert self.is_mine(addr)
label = self.labels.get(addr)
if label:
return label
labels.append(label)
return ', '.join(labels)
return ''
def get_tx_fee(self, tx):