Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to know if the connection is established succesfully? #181

Open
basharov opened this issue Dec 13, 2023 · 2 comments
Open

How to know if the connection is established succesfully? #181

basharov opened this issue Dec 13, 2023 · 2 comments

Comments

@basharov
Copy link

I am building a diagnostic procedure to check multiple running parts of my app. One of them is LND instance, and before running the app I run the procedure and see the status of all parts.

How do I know that LND instance is reachable and authenticated succesfully?

My startpoint is:

const { lnd } = authenticatedLndGrpc(MY_CONFIG)

But by looking into lnd, I don't see any clue. So, when it connects, or doesn't connect (due to LND is down), I don't see any sign of any. I know I can run some method like getChainBalance({ lnd }), to know if commands go through, but is there some other more basic option?

@alexbosworth
Copy link
Owner

You could use the verifyAccess method?

But to verify reachability then yeah you'd want to try reaching the node

@basharov
Copy link
Author

basharov commented Dec 13, 2023

But to verify reachability then yeah you'd want to try reaching the node

To check reachability I use node-nmap and it seems to do the job.
Thanks for the advice!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants