diff options
Diffstat (limited to 'routes/lightning')
| -rw-r--r-- | routes/lightning/invoice.js | 4 | ||||
| -rw-r--r-- | routes/lightning/receive.js | 4 |
2 files changed, 2 insertions, 6 deletions
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); } |
