diff options
| author | Adam Soltys <[email protected]> | 2021-08-04 07:00:20 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2021-08-04 08:16:43 -0700 |
| commit | ea2c9ed23c2b80f4a6200ee19fb4a6c77c3ccb95 (patch) | |
| tree | 1bb8ebcdf7b5bdbdc92ee536ef5517e711e9388c /routes/info.js | |
| parent | cfa93d65f113b4eed50cc88be76eeefa04a900eb (diff) | |
| download | coinos-server-ea2c9ed23c2b80f4a6200ee19fb4a6c77c3ccb95.tar.gz coinos-server-ea2c9ed23c2b80f4a6200ee19fb4a6c77c3ccb95.zip | |
config update, lnd support
Diffstat (limited to 'routes/info.js')
| -rw-r--r-- | routes/info.js | 6 |
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); } } |
