From cc6249b0afe23f7a9d43c58ad6da79595c8c1645 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Thu, 20 Aug 2020 11:36:14 -0700 Subject: remove lnb --- routes/lightning/invoice.js | 4 ++-- routes/lightning/receive.js | 4 ---- 2 files changed, 2 insertions(+), 6 deletions(-) (limited to 'routes/lightning') diff --git a/routes/lightning/invoice.js b/routes/lightning/invoice.js index 51eff332..701ed3c2 100644 --- a/routes/lightning/invoice.js +++ b/routes/lightning/invoice.js @@ -3,10 +3,10 @@ module.exports = ah(async (req, res) => { try { if (config.lna.clightning) { - const invoice = await lnb.invoice(`${amount + tip}sat` || "any", new Date(), memo, 360); + const invoice = await lna.invoice(`${amount + tip}sat` || "any", new Date(), memo, 360); res.send(invoice.bolt11); } else { - const invoice = await lnb.addInvoice({ value: amount + tip, memo }); + const invoice = await lna.addInvoice({ value: amount + tip, memo }); res.send(invoice.payment_request); } } catch (e) { diff --git a/routes/lightning/receive.js b/routes/lightning/receive.js index e8246ab9..719a8184 100644 --- a/routes/lightning/receive.js +++ b/routes/lightning/receive.js @@ -111,11 +111,7 @@ if (config.lna.clightning) { }; poll(lna); - poll(lnb); } else { const invoices = lna.subscribeInvoices({}); invoices.on("data", handlePayment); - - const invoicesb = lnb.subscribeInvoices({}); - invoicesb.on("data", handlePayment); } -- cgit v1.2.3