aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-11-17 07:27:51 +0000
committerAdam Soltys <[email protected]>2024-11-17 07:27:51 +0000
commit69c5b07a68e05d62d8503dbde310b06965330447 (patch)
tree37108cc40be62db87750a708d947d2c746f42a71 /lib
parent16f8410bb823b2143dcbaaaf41b4bbb3257dffcb (diff)
downloadcoinos-server-69c5b07a68e05d62d8503dbde310b06965330447.tar.gz
coinos-server-69c5b07a68e05d62d8503dbde310b06965330447.zip
back to regular pay
Diffstat (limited to 'lib')
-rw-r--r--lib/payments.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/payments.ts b/lib/payments.ts
index 94591985..4a394469 100644
--- a/lib/payments.ts
+++ b/lib/payments.ts
@@ -453,8 +453,9 @@ export const sendLightning = async ({
l("paying lightning invoice", pr.substr(-8), total, amount, maxfee);
- const r = await ln.renepay({
- invstring: pr.replace(/\s/g, "").toLowerCase(),
+ const r = await ln.pay({
+ // invstring: pr.replace(/\s/g, "").toLowerCase(),
+ bolt11: pr.replace(/\s/g, "").toLowerCase(),
amount_msat: amount_msat ? undefined : amount * 1000,
maxfee: maxfee ? maxfee * 1000 : 0,
});