1
0

redo default labels with incoming tx outputs

This commit is contained in:
ThomasV
2015-04-04 15:55:28 +02:00
parent 21ccb1e82d
commit 0a7b585b6c
2 changed files with 10 additions and 3 deletions

View File

@@ -775,6 +775,15 @@ class Abstract_Wallet(object):
return label, is_default
def get_default_label(self, tx_hash):
if self.txi.get(tx_hash) == {}:
d = self.txo.get(tx_hash, {})
for addr in d.keys():
assert self.is_mine(addr)
label = self.labels.get(addr)
if label:
break
label = ">" + addr
return label
return tx_hash
def get_tx_fee(self, tx):