From c3f0689dc728b2ed86792ad180132165479c05d5 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Thu, 24 Nov 2022 13:50:18 -0800 Subject: remove lnd support --- routes/info.js | 4 ---- 1 file changed, 4 deletions(-) (limited to 'routes/info.js') diff --git a/routes/info.js b/routes/info.js index f3de8907..3cbb7c86 100644 --- a/routes/info.js +++ b/routes/info.js @@ -8,7 +8,6 @@ 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"; import { SATS } from "$lib/utils"; @@ -58,9 +57,6 @@ app.get("/balances", async (req, res, next) => { funds.channels.reduce((a, b) => a + b.channel_sat, 0) ); lnwallet = parseInt(funds.outputs.reduce((a, b) => a + b.value, 0)); - } else { - lnchannel = parseInt(await getChannelBalance({ lnd }).channel_balance); - lnwallet = parseInt(await getChainBalance({ lnd }).chain_balance); } } -- cgit v1.2.3