mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-23 17:47:31 +00:00
lnworker: allow changing labels of chan-open/chan-close txns
This commit is contained in:
parent
5ac01ff6ae
commit
c7704fb8ee
1 changed files with 2 additions and 2 deletions
|
@ -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',
|
||||
|
|
Loading…
Add table
Reference in a new issue