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

Connect and listen to BOLT compatible nodes #437

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Varunram
Copy link
Contributor

@Varunram Varunram commented Nov 23, 2018

The connection will be short-lived (15s), but the log statements would let you verify that you're connected. Start lnd, use getinfo and try connecting to lit's pubkey (available in lit's log).

EDIT: Rebased on current master, contains #434 and #435 within it (squashed and rebased, refer #436 for list of commits)

@delbonis delbonis added enhancement Nontrivial improvements that add/enhance features refactoring Significant changes to existing code to improve robustness/performance labels Nov 23, 2018
@delbonis
Copy link
Collaborator

Should those other PRs be closed now?

} else if len(adr) == 0 {
// so the user didn't provide us with an address to connect to
// we need to connect to the locally running lit-af instance
lc.RPCClient, err = litrpc.NewLocalLndcRpcClientWithHomeDirAndPort(defaultDir, port)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we make a way to specify a homedir too? Because without that it kinda breaks my workflow.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hm.. yeah, I think that would be possible, was possible earlier as well iirc. Will push an update.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems to work right now (./lit-af --dir=blah), was this the use case you were looking at?

@Varunram
Copy link
Contributor Author

Varunram commented Dec 5, 2018

retest this please

this is a combination of earlier PRs mit-dci#434 and mit-dci#435 with newer changes.
With this PR, you must be able to

1. Connect to a remote lnd node and observe connection success
2. Connect remote lnd node to lit node for 15s
@Varunram
Copy link
Contributor Author

Varunram commented Dec 5, 2018

Closed other PRs, squashed the commits in this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Nontrivial improvements that add/enhance features refactoring Significant changes to existing code to improve robustness/performance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants