Browse Source

wallet set_tx_label_based_on_invoices: don't overwrite custom label

related: #6545
patch-4
SomberNight 4 years ago
parent
commit
6d86f4dc18
No known key found for this signature in database GPG Key ID: B33B5F232C6271E9
  1. 2
      electrum/wallet.py

2
electrum/wallet.py

@ -823,7 +823,7 @@ class Abstract_Wallet(AddressSynchronizer, ABC):
for invoice in self.get_relevant_invoices_for_tx(tx):
if invoice.message:
labels.append(invoice.message)
if labels:
if labels and not self.labels.get(tx_hash, ''):
self.set_label(tx_hash, "; ".join(labels))
return bool(labels)

Loading…
Cancel
Save