aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2021-08-04 07:00:20 -0700
committerAdam Soltys <[email protected]>2021-08-09 21:04:39 -0700
commit5b35126e62739b6c0e0d4d68a1b6f1eeb0bc35dc (patch)
tree85b488a366a4922e35bcfdef29c02f685cc8b7b1
parent7173804e4cda7fc38b65172a1246a376e225b282 (diff)
downloadcoinos-server-5b35126e62739b6c0e0d4d68a1b6f1eeb0bc35dc.tar.gz
coinos-server-5b35126e62739b6c0e0d4d68a1b6f1eeb0bc35dc.zip
config update, lnd support
-rw-r--r--routes/lightning/send.js2
-rw-r--r--routes/payments.js1
2 files changed, 2 insertions, 1 deletions
diff --git a/routes/lightning/send.js b/routes/lightning/send.js
index f6bd1b36..f3c0da46 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);
+ l.error("problem sending lightning payment", user.username, e.message, e.stack);
res.status(500).send(e.message);
}
});
diff --git a/routes/payments.js b/routes/payments.js
index 29428bb1..70b711da 100644
--- a/routes/payments.js
+++ b/routes/payments.js
@@ -2,6 +2,7 @@ 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 () => {