it doesn't connect to daemon without passing tls and macaroon strings
See original GitHub issueI was using ln-service (v9.0.0) creating lightingDaemon passing only my LND dir, something like this
lnd = lightningDaemon({
host: LNR_LND_RPC_HOST,
});
it worked perfect, I didn’t need to encode to base64 because ln-service did it for me, but now with v20.0.0 it stopped to work, I started to check in the code and I see the service/local_lnd.js
file is it there but not being used, now is forced to pass the macaroon and tls.cert as a base64 string, which I think is a step back, I don’t know why.
I tried to added to the main index.js but it doesn’t work, I get an promisify error, how we can fix this?
internal/util.js:257
throw new ERR_INVALID_ARG_TYPE('original', 'Function', original);
^
TypeError [ERR_INVALID_ARG_TYPE]: The "original" argument must be of type Function. Received type undefined
at promisify (internal/util.js:257:11)
at Object.<anonymous> (/home/grunch/dev/ln-rebalance/node_modules/ln-service/getChainBalance.js:16:18)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:20:18)
at Object.<anonymous> (/home/grunch/dev/ln-rebalance/node_modules/ln-service/service/get_balance.js:3:25)
Issue Analytics
- State:
- Created 5 years ago
- Comments:13 (13 by maintainers)
Top Results From Across the Web
Am I trying to connect to a TLS-enabled daemon without TLS?
For me, running $(boot2docker shellinit 2> /dev/null) fixed the problem. This runs the output of the boot2docker shellinit command (the three set -x ......
Read more >RPC call to lnd - lightning network - Bitcoin Stack Exchange
Here is an example code for connecting to lnd and doing getinfo request. It assumes that you use macaroons. You may need to...
Read more >lnd.conf - Builder's Guide
The LND configuration file can be edited to customize your Lightning Network node.
Read more >lntest package - github.com/ltcsuite/lnd/lntest - Go Packages
Macaroon, error); func (hn *HarnessNode) SetExtraArgs(extraArgs []string) ... the TLS certificate and given macaroon to create a gRPC client connection.
Read more >loopd package - github.com/lightninglabs/loop/loopd - Go Packages
SwapStatus, error); func (d *Daemon) ValidateMacaroon(ctx context. ... TLSDisableAutofill bool `` /* 174-byte string literal not displayed */ MacaroonPath ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This was exposed in index
@alexbosworth why this was closed?