GithubHelp home page GithubHelp logo

Comments (13)

alexbosworth avatar alexbosworth commented on June 1, 2024 1

This was exposed in index

from ln-service.

alexbosworth avatar alexbosworth commented on June 1, 2024

The credentials were split up so there is a new env variable needed to specify which chain you are using

https://github.com/alexbosworth/ln-service#configuring-environment-variables

from ln-service.

grunch avatar grunch commented on June 1, 2024

I know, I have configured that credentials, the issue is not allowed to use just indicate the path of my tls.cert, now is forced to enter the base64 string, previous versions let you do it in the two ways

from ln-service.

alexbosworth avatar alexbosworth commented on June 1, 2024

You can try service/local_lnd.js to retrieve the local LND via the path

from ln-service.

grunch avatar grunch commented on June 1, 2024

I did, I told you in the first post, did you read it?

from ln-service.

grunch avatar grunch commented on June 1, 2024

Maybe I didn't explained myself well, I added service/local_lnd.js to the main index.js, then imported to connect through it, but I get that promisify error I wrote up there

from ln-service.

alexbosworth avatar alexbosworth commented on June 1, 2024

I don't know what the code looks like but it seems like the require isn't specified correctly then, try the full relative path to the file and no destructuring

from ln-service.

grunch avatar grunch commented on June 1, 2024

same thing

from ln-service.

alexbosworth avatar alexbosworth commented on June 1, 2024

I think it's because you're using promisify but this is not a callback function

from ln-service.

plwalters avatar plwalters commented on June 1, 2024

Can you paste your code here?

from ln-service.

grunch avatar grunch commented on June 1, 2024
#./index.js
....
const {updateRoutingFees} = require('./lightning');
const {verifyMessage} = require('./lightning');
const {localLnd} = require('./service'); <== added line

module.exports = {
  localLnd, <== added line
  addPeer,
  closeChannel,
.....
# my connect.js
const { localLnd } = require('ln-service');

const lnd = localLnd({});

I had all LND_GRPC_PORT, LND_HOST, LNSERVICE_LND_DIR, LNSERVICE_CHAIN, LNSERVICE_NETWORK vars setted.

from ln-service.

alexbosworth avatar alexbosworth commented on June 1, 2024

I tried exposing it now in index.js

from ln-service.

grunch avatar grunch commented on June 1, 2024

@alexbosworth why this was closed?

from ln-service.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.