add invoice status to invoice_status callback (#8020)
* add invoice status to invoice_status callback * debug statement fails tests * removed commented lines, added progress/attempt counter comment in lnworker.pay_to_node, and update the invoice_status event handler in qeinvoicelistmodel.py
This commit is contained in:
@@ -288,13 +288,12 @@ class ElectrumWindow(App, Logger, EventListener):
|
||||
self._trigger_update_history()
|
||||
|
||||
@event_listener
|
||||
def on_event_invoice_status(self, wallet, key):
|
||||
def on_event_invoice_status(self, wallet, key, status):
|
||||
if wallet != self.wallet:
|
||||
return
|
||||
req = self.wallet.get_invoice(key)
|
||||
if req is None:
|
||||
return
|
||||
status = self.wallet.get_invoice_status(req)
|
||||
if self.send_screen:
|
||||
if status == PR_PAID:
|
||||
self.send_screen.update()
|
||||
|
||||
Reference in New Issue
Block a user