1
0

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:
accumulator
2022-10-21 18:45:12 +02:00
committed by GitHub
parent d65ee17100
commit 6e536d2d91
5 changed files with 15 additions and 28 deletions

View File

@@ -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()