diff options
| author | Adam Soltys <[email protected]> | 2021-08-04 07:00:20 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2021-08-04 07:00:20 -0700 |
| commit | 8b06e5a742a529e98736a2b60dc3b2f5d581fe03 (patch) | |
| tree | dbae4a77eacc55743be8fa48c3f23dc5a4e4c82d /routes/lnurl.js | |
| parent | 45a58bddc5a8dd4b25865c922ef9b4107b427435 (diff) | |
| download | coinos-server-8b06e5a742a529e98736a2b60dc3b2f5d581fe03.tar.gz coinos-server-8b06e5a742a529e98736a2b60dc3b2f5d581fe03.zip | |
config update, lnd support
Diffstat (limited to 'routes/lnurl.js')
| -rw-r--r-- | routes/lnurl.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/routes/lnurl.js b/routes/lnurl.js index f6b066ff..adf4df7c 100644 --- a/routes/lnurl.js +++ b/routes/lnurl.js @@ -90,7 +90,7 @@ app.post( amount: value, params: { callback, k1 } } = req.body; - const invoice = await lna.addInvoice({ value }); + const invoice = await lnp.addInvoice({ value }); const { payment_request: pr } = invoice; const url = `${callback}?k1=${k1}&pr=${pr}`; @@ -284,7 +284,7 @@ lnurlServer.bindToHook( if (recipient) { setTimeout(async () => { - let { invoices } = await lna.listInvoices({ + let { invoices } = await lnp.listInvoices({ pending_only: true }); @@ -352,7 +352,7 @@ lnurlServer.bindToHook( } try { - let decoded = await lna.decodePayReq({ pay_req: pr }); + let decoded = await lnp.decodePayReq({ pay_req: pr }); let amount = decoded.num_satoshis; await db.transaction(async transaction => { @@ -385,7 +385,7 @@ lnurlServer.bindToHook( setTimeout(async () => { try { - let { payments } = await lna.listPayments({ + let { payments } = await lnp.listPayments({ include_incomplete: false, max_payments: 5, reversed: true |
