aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2023-02-08 16:47:32 -0800
committerAdam Soltys <[email protected]>2023-02-08 16:47:32 -0800
commit12dcd267bd2d23439afcbd493fda6f9d77035c4a (patch)
treeafe187ef3bcaeb2450a5cdbae9de6669cb004721 /lib
parent7de7a87dd4f014f2a4f0aa405a6ba4a1a6c9f208 (diff)
downloadcoinos-server-12dcd267bd2d23439afcbd493fda6f9d77035c4a.tar.gz
coinos-server-12dcd267bd2d23439afcbd493fda6f9d77035c4a.zip
invoice requests
Diffstat (limited to 'lib')
-rw-r--r--lib/invoices.js12
1 files changed, 11 insertions, 1 deletions
diff --git a/lib/invoices.js b/lib/invoices.js
index 5969ac59..bab48515 100644
--- a/lib/invoices.js
+++ b/lib/invoices.js
@@ -31,7 +31,17 @@ export let generate = async ({ invoice, user, sender, memo }) => {
let hash, text;
if (type === types.lightning) {
let amt = amount ? `${amount + tip}sat` : "any";
- let r = await ln.invoice(amt, new Date(), memo || "", 3600);
+ let r = await ln.invoice(
+ amt,
+ new Date(),
+ memo || "",
+ 3600,
+ undefined,
+ undefined,
+ undefined,
+ undefined,
+ true
+ );
hash = r.payment_hash;
text = r.bolt11;