diff options
| author | Adam Soltys <[email protected]> | 2021-08-04 07:00:20 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2021-08-04 07:00:20 -0700 |
| commit | 8b06e5a742a529e98736a2b60dc3b2f5d581fe03 (patch) | |
| tree | dbae4a77eacc55743be8fa48c3f23dc5a4e4c82d /routes/lightning/channel.js | |
| parent | 45a58bddc5a8dd4b25865c922ef9b4107b427435 (diff) | |
| download | coinos-server-8b06e5a742a529e98736a2b60dc3b2f5d581fe03.tar.gz coinos-server-8b06e5a742a529e98736a2b60dc3b2f5d581fe03.zip | |
config update, lnd support
Diffstat (limited to 'routes/lightning/channel.js')
| -rw-r--r-- | routes/lightning/channel.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/routes/lightning/channel.js b/routes/lightning/channel.js index b6c4a25f..cb8ddf07 100644 --- a/routes/lightning/channel.js +++ b/routes/lightning/channel.js @@ -7,7 +7,7 @@ module.exports = ah(async (req, res) => { l.info("connecting to peer", req.user.username, pubkey, host); let result; try { - result = await lna.connectPeer({ + result = await lnp.connectPeer({ addr: { pubkey, host }, perm: true }); @@ -21,7 +21,7 @@ module.exports = ah(async (req, res) => { const { callback, k1 } = params; let remoteid; try { - remoteid = (await lna.getInfo({})).identity_pubkey; + remoteid = (await lnp.getInfo({})).identity_pubkey; } catch(e) { l.error("problem getting lightning node info", e.message); return res.status(500).send(e.message); |
