electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit c7704fb8eeb74e69fc0ffaa20c62b982a2b993dd
parent 5ac01ff6ae9e82a18df0be6297ea9e81dcb239ad
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:
Melectrum/lnworker.py | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/electrum/lnworker.py b/electrum/lnworker.py @@ -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', @@ -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',