aboutsummaryrefslogtreecommitdiffstats
path: root/routes
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2021-08-18 20:14:29 +0000
committerAdam Soltys <[email protected]>2021-08-18 20:14:29 +0000
commitf2dad8ba2a169d9db1ced652c4ebee407b3c6609 (patch)
treec1cd416d35ded62fb0864beb448a4a1f07ff0c17 /routes
parentbf1c162f037bd59ee350c454c8e72359d2a1d5fc (diff)
downloadcoinos-server-f2dad8ba2a169d9db1ced652c4ebee407b3c6609.tar.gz
coinos-server-f2dad8ba2a169d9db1ced652c4ebee407b3c6609.zip
make lnd optional
Diffstat (limited to 'routes')
-rw-r--r--routes/payments.js2
1 files changed, 1 insertions, 1 deletions
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",