aboutsummaryrefslogtreecommitdiffstats
path: root/routes/info.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2021-08-04 07:00:20 -0700
committerAdam Soltys <[email protected]>2021-08-04 07:00:20 -0700
commit8b06e5a742a529e98736a2b60dc3b2f5d581fe03 (patch)
treedbae4a77eacc55743be8fa48c3f23dc5a4e4c82d /routes/info.js
parent45a58bddc5a8dd4b25865c922ef9b4107b427435 (diff)
downloadcoinos-server-8b06e5a742a529e98736a2b60dc3b2f5d581fe03.tar.gz
coinos-server-8b06e5a742a529e98736a2b60dc3b2f5d581fe03.zip
config update, lnd support
Diffstat (limited to 'routes/info.js')
-rw-r--r--routes/info.js6
1 files changed, 3 insertions, 3 deletions
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);
}
}