diff options
| author | Adam Soltys <[email protected]> | 2022-11-24 13:50:18 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-11-24 13:50:18 -0800 |
| commit | c3f0689dc728b2ed86792ad180132165479c05d5 (patch) | |
| tree | 5bb2778e60c411fe692190f03b960d5068024fd0 /routes/lnurl.js | |
| parent | 40e1723e0432d1656cbc5fbbd5e79a981d97809b (diff) | |
| download | coinos-server-c3f0689dc728b2ed86792ad180132165479c05d5.tar.gz coinos-server-c3f0689dc728b2ed86792ad180132165479c05d5.zip | |
remove lnd support
Diffstat (limited to 'routes/lnurl.js')
| -rw-r--r-- | routes/lnurl.js | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/routes/lnurl.js b/routes/lnurl.js index 962a908c..171acbe5 100644 --- a/routes/lnurl.js +++ b/routes/lnurl.js @@ -16,7 +16,6 @@ import jwt from "jsonwebtoken"; import qs from "query-string"; import bolt11 from "bolt11"; -import { createInvoice, decodePaymentRequest, getPayments } from "lightning"; import { computeConversionFee, @@ -102,8 +101,6 @@ app.post("/withdraw", auth, async (req, res, next) => { let desc = label; invoice = await ln.invoice(`${value}sats`, label, desc); - } else { - invoice = await createInvoice({ lnd, value }); } const { payment_request: pr } = invoice; @@ -400,12 +397,7 @@ lnurlServer.bindToHook( if (config.lna.clightning) { let { msatoshi } = await ln.decodepay(pr); amount = parseInt(msatoshi / 1000); - } else { - ({ num_satoshis: amount } = await decodePaymentRequest({ - lnd, - request: pr - })); - } + } let conversionFee = computeConversionFee(amount); await db.transaction(async transaction => { |
