aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-11-07 21:33:25 -0800
committerAdam Soltys <[email protected]>2024-11-07 21:33:25 -0800
commitb76bce6073e88469234288c6323fef83cacb2c8c (patch)
tree8bf6a7659b98da69a2f5d63f7ddcd39ecb423d01 /lib
parent837c7376b3d46bceb5fa46ca982693f6e87788dd (diff)
downloadcoinos-server-b76bce6073e88469234288c6323fef83cacb2c8c.tar.gz
coinos-server-b76bce6073e88469234288c6323fef83cacb2c8c.zip
use renepay
Diffstat (limited to 'lib')
-rw-r--r--lib/payments.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/payments.ts b/lib/payments.ts
index 55819c26..ab05f070 100644
--- a/lib/payments.ts
+++ b/lib/payments.ts
@@ -453,8 +453,8 @@ export const sendLightning = async ({
l("paying lightning invoice", pr.substr(-8), total, amount, maxfee);
- const r = await ln.pay({
- bolt11: pr.replace(/\s/g, "").toLowerCase(),
+ const r = await ln.renepay({
+ invstring: pr.replace(/\s/g, "").toLowerCase(),
amount_msat: amount_msat ? undefined : amount * 1000,
maxfee: maxfee ? maxfee * 1000 : undefined,
retry_for: 5,