Browse Source
lnworker: allow changing labels of chan-open/chan-close txns
hard-fail-on-bad-server-string
SomberNight
5 years ago
No known key found for this signature in database
GPG Key ID: B33B5F232C6271E9
1 changed files with
2 additions and
2 deletions
-
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', |
|
|
|