diff options
| author | Adam Soltys <[email protected]> | 2022-09-22 02:57:54 +0000 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-09-22 02:57:54 +0000 |
| commit | 3f18d0c8ab508553062bf92a17295961f91a4822 (patch) | |
| tree | 4608fc9f51820cdd48abc6352ddaf83f0e1208e3 /routes/info.js | |
| parent | 45ae80bcde258622108c6d66e404660b0c037eb8 (diff) | |
| parent | 918813a6e49f9d05828f6fb205614f9d288269e1 (diff) | |
| download | coinos-server-3f18d0c8ab508553062bf92a17295961f91a4822.tar.gz coinos-server-3f18d0c8ab508553062bf92a17295961f91a4822.zip | |
Merge remote-tracking branch 'origin/master' into prod2
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) ); |
