diff options
| author | Adam Soltys <[email protected]> | 2022-09-20 22:48:18 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-09-20 22:48:18 -0700 |
| commit | 4569736bac949bd2b06ce03b11299b11984e8d3c (patch) | |
| tree | d4e7c71c5be97903a43e0e25f816b2a4b9fde0a5 /routes/info.js | |
| parent | f2fb6b587bb171101b0f91722c0c29e358b386e0 (diff) | |
| parent | b53875cf6bdf47c359139aa846c6597fa3627c87 (diff) | |
| download | coinos-server-4569736bac949bd2b06ce03b11299b11984e8d3c.tar.gz coinos-server-4569736bac949bd2b06ce03b11299b11984e8d3c.zip | |
Merge branch 'master' into prod
Diffstat (limited to 'routes/info.js')
| -rw-r--r-- | routes/info.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/routes/info.js b/routes/info.js index 63f353a5..fd77c5d1 100644 --- a/routes/info.js +++ b/routes/info.js @@ -6,6 +6,7 @@ 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 { getChannelBalance, getChainBalance } from "lightning"; import sequelize from "@sequelize/core"; @@ -50,7 +51,7 @@ app.get("/balances", async (req, res, next) => { if (config.lna) { if (config.lna.clightning) { - const funds = await lna.listfunds(); + const funds = await ln.listfunds(); lnchannel = parseInt( funds.channels.reduce((a, b) => a + b.channel_sat, 0) ); |
