From a675c1992fa58ad04b04a222a1123321268c7af1 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Thu, 24 Nov 2022 14:04:22 -0800 Subject: remove lnd support --- routes/info.js | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'routes/info.js') diff --git a/routes/info.js b/routes/info.js index 3cbb7c86..eb42ca35 100644 --- a/routes/info.js +++ b/routes/info.js @@ -5,7 +5,6 @@ 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 sequelize from "@sequelize/core"; @@ -50,15 +49,9 @@ app.get("/balances", async (req, res, next) => { let lnchannel; let lnwallet; - if (config.lna) { - if (config.lna.clightning) { - const funds = await ln.listfunds(); - lnchannel = parseInt( - funds.channels.reduce((a, b) => a + b.channel_sat, 0) - ); - lnwallet = parseInt(funds.outputs.reduce((a, b) => a + b.value, 0)); - } - } + const funds = await ln.listfunds(); + lnchannel = parseInt(funds.channels.reduce((a, b) => a + b.channel_sat, 0)); + lnwallet = parseInt(funds.outputs.reduce((a, b) => a + b.value, 0)); let bitcoin, bitcoind; if (config.bitcoin) { -- cgit v1.2.3