From b53875cf6bdf47c359139aa846c6597fa3627c87 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Tue, 20 Sep 2022 22:48:01 -0700 Subject: clightning support --- routes/info.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'routes/info.js') 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) ); -- cgit v1.2.3