From b76bce6073e88469234288c6323fef83cacb2c8c Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Thu, 7 Nov 2024 21:33:25 -0800 Subject: use renepay --- bun.lockb | Bin 208567 -> 208510 bytes lib/payments.ts | 4 ++-- package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bun.lockb b/bun.lockb index 9f5ddcd3..41ec4eac 100755 Binary files a/bun.lockb and b/bun.lockb differ 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, diff --git a/package.json b/package.json index 9fc9519e..d2cc9cae 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ "@noble/hashes": "^1.4.0", "bech32": "^2.0.0", "buffer-crc32": "^0.2.13", - "clightning-client": "github:SimonVrouwe/lightning-client-js#2022-11-04_improve_doc", + "clightning-client": "github:asoltys/lightning-client-js#master", "date-fns": "^2.21.3", "fastify": "^4.28.1", "file-type": "^18.0.0", -- cgit v1.2.3