From 947474e5e507b2bfcec5aeb2b0ad8e058703dbd7 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Mon, 18 Nov 2024 08:45:38 -0800 Subject: 20s retry --- lib/payments.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/payments.ts b/lib/payments.ts index ae36725b..e950786f 100644 --- a/lib/payments.ts +++ b/lib/payments.ts @@ -459,6 +459,7 @@ export const sendLightning = async ({ bolt11: pr.replace(/\s/g, "").toLowerCase(), amount_msat: amount_msat ? undefined : amount * 1000, maxfee: maxfee ? maxfee * 1000 : 0, + retry_for: 20, }); try { @@ -701,7 +702,7 @@ export const check = async () => { for (const pr of payments) { const p = await getPayment(pr); - if (!p || Date.now() - p.created < 60000) continue; + if (!p || Date.now() - p.created < 20000) continue; const { pays } = await ln.listpays(pr); const failed = !pays.length || pays.every((p) => p.status === "failed"); -- cgit v1.2.3