aboutsummaryrefslogtreecommitdiffstats
path: root/lib/invoices.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2023-12-23 00:26:26 +0000
committerAdam Soltys <[email protected]>2023-12-23 00:26:31 +0000
commita89b891a3311104f2cc34d75d97b84774924befa (patch)
treedb4aa0b3d69d44311eea5ba2f515039aa5e40b9e /lib/invoices.js
parentfbf27aaeb56cabc004c30215832126c98e7e4c6a (diff)
downloadcoinos-server-a89b891a3311104f2cc34d75d97b84774924befa.tar.gz
coinos-server-a89b891a3311104f2cc34d75d97b84774924befa.zip
cltv default
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);