From a89b891a3311104f2cc34d75d97b84774924befa Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Sat, 23 Dec 2023 00:26:26 +0000 Subject: cltv default --- lib/invoices.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/invoices.js') 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); -- cgit v1.2.3