1
0

LNWorker: give up payment after timeout, not number of attempts.

Limiting attempts may interrupt a MPP before we receive a MPP_timeout
The attempts parameter is still used in unit tests.
This commit is contained in:
ThomasV
2022-04-29 12:11:50 +02:00
parent 1182972be1
commit f4e902e907
5 changed files with 11 additions and 11 deletions

View File

@@ -1724,7 +1724,7 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, Logger):
if not self.question(msg):
return
self.save_pending_invoice()
coro = self.wallet.lnworker.pay_invoice(invoice.lightning_invoice, amount_msat=amount_msat, attempts=LN_NUM_PAYMENT_ATTEMPTS)
coro = self.wallet.lnworker.pay_invoice(invoice.lightning_invoice, amount_msat=amount_msat)
self.run_coroutine_from_thread(coro)
def on_request_status(self, wallet, key, status):