aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/payments.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/payments.ts b/lib/payments.ts
index 0b39fb7c..0f55368f 100644
--- a/lib/payments.ts
+++ b/lib/payments.ts
@@ -456,7 +456,7 @@ export const sendLightning = async ({
const r = await ln.renepay({
invstring: pr.replace(/\s/g, "").toLowerCase(),
amount_msat: amount_msat ? undefined : amount * 1000,
- maxfee: maxfee ? maxfee * 1000 : undefined,
+ maxfee: maxfee ? maxfee * 1000 : 0,
retry_for: 10,
});
@@ -700,7 +700,7 @@ export const check = async () => {
for (const pr of payments) {
const p = await getPayment(pr);
- if (!p) continue;
+ if (!p || Date.now() - p.created < 10000) continue;
const { pays } = await ln.listpays(pr);
const failed = !pays.length || pays.every((p) => p.status === "failed");