diff options
| author | Adam Soltys <[email protected]> | 2023-12-23 00:26:26 +0000 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2023-12-23 00:26:31 +0000 |
| commit | a89b891a3311104f2cc34d75d97b84774924befa (patch) | |
| tree | db4aa0b3d69d44311eea5ba2f515039aa5e40b9e /lib/invoices.js | |
| parent | fbf27aaeb56cabc004c30215832126c98e7e4c6a (diff) | |
| download | coinos-server-a89b891a3311104f2cc34d75d97b84774924befa.tar.gz coinos-server-a89b891a3311104f2cc34d75d97b84774924befa.zip | |
cltv default
Diffstat (limited to 'lib/invoices.js')
| -rw-r--r-- | lib/invoices.js | 3 |
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); |
