aboutsummaryrefslogtreecommitdiffstats
path: root/routes
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2021-08-04 14:15:38 -0400
committerAdam Soltys <[email protected]>2021-08-04 14:15:38 -0400
commitdb5888df67d7120c0ee5d77f36ddcedbeae5455e (patch)
tree86854de69cab29aed062300112bcd7386d45f71a /routes
parent57749346e2f1762716e44d1dcb656d80f31f177c (diff)
downloadcoinos-server-db5888df67d7120c0ee5d77f36ddcedbeae5455e.tar.gz
coinos-server-db5888df67d7120c0ee5d77f36ddcedbeae5455e.zip
move lnd require
Diffstat (limited to 'routes')
-rw-r--r--routes/lightning/send.js2
-rw-r--r--routes/payments.js2
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",