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

@@ -361,7 +361,7 @@ class SendScreen(CScreen, Logger):
amount_msat = invoice.get_amount_msat()
def pay_thread():
try:
coro = self.app.wallet.lnworker.pay_invoice(invoice.lightning_invoice, amount_msat=amount_msat, attempts=10)
coro = self.app.wallet.lnworker.pay_invoice(invoice.lightning_invoice, amount_msat=amount_msat)
fut = asyncio.run_coroutine_threadsafe(coro, self.app.network.asyncio_loop)
fut.result()
except Exception as e: