From ea2c9ed23c2b80f4a6200ee19fb4a6c77c3ccb95 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Wed, 4 Aug 2021 07:00:20 -0700 Subject: config update, lnd support --- routes/info.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'routes/info.js') diff --git a/routes/info.js b/routes/info.js index f8a0fa72..6d9d5f32 100644 --- a/routes/info.js +++ b/routes/info.js @@ -34,9 +34,9 @@ app.get("/balances", ah(async (req, res, next) => { lnchannel = parseInt(funds.channels.reduce((a, b) => a + b.channel_sat, 0)); lnwallet = parseInt(funds.outputs.reduce((a, b) => a + b.value, 0)); } else { - lninfo = await lna.getInfo({}); - lnchannel = parseInt((await lna.channelBalance({})).balance); - lnwallet = parseInt((await lna.walletBalance({})).total_balance); + lninfo = await lnp.getInfo({}); + lnchannel = parseInt((await lnp.channelBalance({})).balance); + lnwallet = parseInt((await lnp.walletBalance({})).total_balance); } } -- cgit v1.2.3