aboutsummaryrefslogtreecommitdiffstats
path: root/lib/invoices.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/invoices.js')
-rw-r--r--lib/invoices.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/invoices.js b/lib/invoices.js
index 0cf2d72b..23af1aa4 100644
--- a/lib/invoices.js
+++ b/lib/invoices.js
@@ -46,6 +46,7 @@ export let generate = async ({ invoice, user, sender, memo }) => {
description: memo || "",
expiry: expiry || 60 * 60 * 24 * 30,
deschashonly: true,
+ cltv: 19
});
hash = r.bolt11;
@@ -79,7 +80,7 @@ export let generate = async ({ invoice, user, sender, memo }) => {
webhook,
};
- l(type, "invoice", user.username, amount);
+ if (!user.username === 'lightningins') l(type, "invoice", user.username, amount);
await s(`invoice:${hash}`, id);
await s(`invoice:${id}`, invoice);