diff options
| author | Adam Soltys <[email protected]> | 2022-11-24 13:50:18 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-11-24 13:50:18 -0800 |
| commit | c3f0689dc728b2ed86792ad180132165479c05d5 (patch) | |
| tree | 5bb2778e60c411fe692190f03b960d5068024fd0 /routes/lightning/channel.js | |
| parent | 40e1723e0432d1656cbc5fbbd5e79a981d97809b (diff) | |
| download | coinos-server-c3f0689dc728b2ed86792ad180132165479c05d5.tar.gz coinos-server-c3f0689dc728b2ed86792ad180132165479c05d5.zip | |
remove lnd support
Diffstat (limited to 'routes/lightning/channel.js')
| -rw-r--r-- | routes/lightning/channel.js | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/routes/lightning/channel.js b/routes/lightning/channel.js index 107896f4..d5d5b7b2 100644 --- a/routes/lightning/channel.js +++ b/routes/lightning/channel.js @@ -1,6 +1,4 @@ import axios from "axios"; -import { addPeer, getIdentity } from "lightning"; -import lnd from "$lib/lnd"; import ln from "$lib/ln"; export default async (req, res) => { @@ -9,27 +7,11 @@ export default async (req, res) => { l("connecting to peer", req.user.username, public_key, socket); let result; - try { - result = await addPeer({ - lnd, - socket, - public_key - }); - } catch (e) { - if (!e.message.includes("already connected")) { - err("problem connecting to peer", e.message); - return res.code(500).send(e.message); - } - } const { callback, k1 } = params; let remoteid; try { - if (config.lna.clightning) { remoteid = (await ln.getinfo()).id; - } else { - remoteid = (await getIdentity({ lnd })).public_key; - } } catch (e) { err("problem getting lightning node info", e.message); return res.code(500).send(e.message); |
