diff options
| -rw-r--r-- | routes/lightning/send.js | 2 | ||||
| -rw-r--r-- | routes/payments.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/routes/lightning/send.js b/routes/lightning/send.js index f3c0da46..f6bd1b36 100644 --- a/routes/lightning/send.js +++ b/routes/lightning/send.js @@ -5,7 +5,7 @@ module.exports = ah(async (req, res) => { try { res.send(await send(amount, memo, payreq, user)); } catch (e) { - l.error("problem sending lightning payment", user.username, e.message, e.stack); + l.error("problem sending lightning payment", user.username, e.message); res.status(500).send(e.message); } }); diff --git a/routes/payments.js b/routes/payments.js index 70b711da..aa850839 100644 --- a/routes/payments.js +++ b/routes/payments.js @@ -2,7 +2,6 @@ const BitcoinCore = require("@asoltys/bitcoin-core"); const { Op } = require("sequelize"); const { join } = require("path"); const fs = require("fs"); -const lnd = require("../lib/lnd"); const read = require("../lib/read"); ah(async () => { @@ -96,6 +95,7 @@ ah(async () => { if (config.lna.clightning) { lna = require("clightning-client")(config.lna.dir); } else { + lnd = require("../lib/lnd"); lna = lnd.default; lnp = [ "addInvoice", |
