diff options
| author | Adam Soltys <[email protected]> | 2022-11-24 14:04:22 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-11-24 14:04:22 -0800 |
| commit | a675c1992fa58ad04b04a222a1123321268c7af1 (patch) | |
| tree | 90e4da60a3104c99adfeaa820ec9b00496206538 /routes/info.js | |
| parent | c3f0689dc728b2ed86792ad180132165479c05d5 (diff) | |
| download | coinos-server-a675c1992fa58ad04b04a222a1123321268c7af1.tar.gz coinos-server-a675c1992fa58ad04b04a222a1123321268c7af1.zip | |
remove lnd support
Diffstat (limited to 'routes/info.js')
| -rw-r--r-- | routes/info.js | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/routes/info.js b/routes/info.js index 3cbb7c86..eb42ca35 100644 --- a/routes/info.js +++ b/routes/info.js @@ -5,7 +5,6 @@ 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 sequelize from "@sequelize/core"; @@ -50,15 +49,9 @@ app.get("/balances", async (req, res, next) => { let lnchannel; let lnwallet; - if (config.lna) { - if (config.lna.clightning) { - const funds = await ln.listfunds(); - lnchannel = parseInt( - funds.channels.reduce((a, b) => a + b.channel_sat, 0) - ); - lnwallet = parseInt(funds.outputs.reduce((a, b) => a + b.value, 0)); - } - } + const funds = await ln.listfunds(); + lnchannel = parseInt(funds.channels.reduce((a, b) => a + b.channel_sat, 0)); + lnwallet = parseInt(funds.outputs.reduce((a, b) => a + b.value, 0)); let bitcoin, bitcoind; if (config.bitcoin) { |
