Add short channel id to tx labels
This commit is contained in:
@@ -599,7 +599,7 @@ class LNWallet(LNWorker):
|
||||
item = {
|
||||
'channel_id': bh2u(chan.channel_id),
|
||||
'type': 'channel_opening',
|
||||
'label': self.wallet.get_label(funding_txid) or _('Open channel'),
|
||||
'label': self.wallet.get_label(funding_txid) or (_('Open channel') + ' ' + chan.get_id_for_log()),
|
||||
'txid': funding_txid,
|
||||
'amount_msat': chan.balance(LOCAL, ctn=0),
|
||||
'direction': 'received',
|
||||
@@ -614,7 +614,7 @@ class LNWallet(LNWorker):
|
||||
item = {
|
||||
'channel_id': bh2u(chan.channel_id),
|
||||
'txid': closing_txid,
|
||||
'label': self.wallet.get_label(closing_txid) or _('Close channel'),
|
||||
'label': self.wallet.get_label(closing_txid) or (_('Close channel') + ' ' + chan.get_id_for_log()),
|
||||
'type': 'channel_closure',
|
||||
'amount_msat': -chan.balance_minus_outgoing_htlcs(LOCAL),
|
||||
'direction': 'sent',
|
||||
|
||||
Reference in New Issue
Block a user