tlnworker: allow changing labels of chan-open/chan-close txns - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit c7704fb8eeb74e69fc0ffaa20c62b982a2b993dd DIR parent 5ac01ff6ae9e82a18df0be6297ea9e81dcb239ad HTML Author: SomberNight <somber.night@protonmail.com> Date: Mon, 2 Mar 2020 04:30:06 +0100 lnworker: allow changing labels of chan-open/chan-close txns Diffstat: M electrum/lnworker.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- DIR diff --git a/electrum/lnworker.py b/electrum/lnworker.py t@@ -580,7 +580,7 @@ class LNWallet(LNWorker): item = { 'channel_id': bh2u(chan.channel_id), 'type': 'channel_opening', - 'label': _('Open channel'), + 'label': self.wallet.get_label(funding_txid) or _('Open channel'), 'txid': funding_txid, 'amount_msat': chan.balance(LOCAL, ctn=0), 'direction': 'received', t@@ -595,7 +595,7 @@ class LNWallet(LNWorker): item = { 'channel_id': bh2u(chan.channel_id), 'txid': closing_txid, - 'label': _('Close channel'), + 'label': self.wallet.get_label(closing_txid) or _('Close channel'), 'type': 'channel_closure', 'amount_msat': -chan.balance_minus_outgoing_htlcs(LOCAL), 'direction': 'sent',