aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2021-08-18 20:14:29 +0000
committerAdam Soltys <[email protected]>2021-08-30 16:03:09 -0700
commit4b27cbceabaf27cb49ac032eaf0533ac3d08062d (patch)
tree23d2e96d30f4d6edf111339cbfd1dd60e7cee7fa
parent88aac8f4352d5a117011b919b8119ec7b65d8e94 (diff)
downloadcoinos-server-4b27cbceabaf27cb49ac032eaf0533ac3d08062d.tar.gz
coinos-server-4b27cbceabaf27cb49ac032eaf0533ac3d08062d.zip
make lnd optional
-rw-r--r--index.js1
-rw-r--r--routes/payments.js2
2 files changed, 2 insertions, 1 deletions
diff --git a/index.js b/index.js
index 5017720a..d9945cc4 100644
--- a/index.js
+++ b/index.js
@@ -122,3 +122,4 @@ process.on("SIGINT", process.exit);
process.on("uncaughtException", function(exception) {
console.log(exception);
});
+
diff --git a/routes/payments.js b/routes/payments.js
index 70b711da..fc1f114b 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 {
+ const lnd = require("../lib/lnd");
lna = lnd.default;
lnp = [
"addInvoice",