add 'view log' action for LN payments in tx history
This commit is contained in:
@@ -663,6 +663,10 @@ class HistoryList(MyTreeView, AcceptFileDragDrop):
|
|||||||
cc = self.add_copy_menu(menu, idx)
|
cc = self.add_copy_menu(menu, idx)
|
||||||
cc.addAction(_("Payment Hash"), lambda: self.place_text_on_clipboard(tx_item['payment_hash'], title="Payment Hash"))
|
cc.addAction(_("Payment Hash"), lambda: self.place_text_on_clipboard(tx_item['payment_hash'], title="Payment Hash"))
|
||||||
cc.addAction(_("Preimage"), lambda: self.place_text_on_clipboard(tx_item['preimage'], title="Preimage"))
|
cc.addAction(_("Preimage"), lambda: self.place_text_on_clipboard(tx_item['preimage'], title="Preimage"))
|
||||||
|
key = tx_item['payment_hash']
|
||||||
|
log = self.wallet.lnworker.logs.get(key)
|
||||||
|
if log:
|
||||||
|
menu.addAction(_("View log"), lambda: self.parent.invoice_list.show_log(key, log))
|
||||||
menu.exec_(self.viewport().mapToGlobal(position))
|
menu.exec_(self.viewport().mapToGlobal(position))
|
||||||
return
|
return
|
||||||
tx_hash = tx_item['txid']
|
tx_hash = tx_item['txid']
|
||||||
|
|||||||
Reference in New Issue
Block a user