lnworker: allow changing labels of chan-open/chan-close txns
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user