aboutsummaryrefslogtreecommitdiffstats
path: root/routes/info.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2022-09-20 22:48:01 -0700
committerAdam Soltys <[email protected]>2022-09-20 22:48:01 -0700
commitb53875cf6bdf47c359139aa846c6597fa3627c87 (patch)
treed4e7c71c5be97903a43e0e25f816b2a4b9fde0a5 /routes/info.js
parent2b552fdd6eca883ee24d2772e1de24f4bab70202 (diff)
downloadcoinos-server-b53875cf6bdf47c359139aa846c6597fa3627c87.tar.gz
coinos-server-b53875cf6bdf47c359139aa846c6597fa3627c87.zip
clightning support
Diffstat (limited to 'routes/info.js')
-rw-r--r--routes/info.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/routes/info.js b/routes/info.js
index 63f353a5..fd77c5d1 100644
--- a/routes/info.js
+++ b/routes/info.js
@@ -6,6 +6,7 @@ import store from "$lib/store";
import bc from "$lib/bitcoin";
import lq from "$lib/liquid";
import lnd from "$lib/lnd";
+import ln from "$lib/ln";
import { getChannelBalance, getChainBalance } from "lightning";
import sequelize from "@sequelize/core";
@@ -50,7 +51,7 @@ app.get("/balances", async (req, res, next) => {
if (config.lna) {
if (config.lna.clightning) {
- const funds = await lna.listfunds();
+ const funds = await ln.listfunds();
lnchannel = parseInt(
funds.channels.reduce((a, b) => a + b.channel_sat, 0)
);