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

fix(lnd): don't default lnd clients as disabled #692

Merged
merged 1 commit into from
Nov 19, 2018

Conversation

sangaman
Copy link
Collaborator

This fixes a bug introduced in #672 whereby the lnd clients are not properly initializing. That PR removed synchronous calls to methods that had asynchronous alternatives, which necessitated moving code from the synchronous LndClient constructor to an asynchronous init method.

Included in the code that was moved was logic to determine whether to change the client's status from the default value of Disabled. This impacted the xud initialization procedure which would only attempt
to initialize (or previously verify a connection for) an lnd client that was not disabled.

This PR creates a new NotInitialized status as the default to reflect the status of a newly created client. It gets changed when the init method is called.

@sangaman sangaman added the bug Something isn't working label Nov 19, 2018
@ghost ghost assigned sangaman Nov 19, 2018
@ghost ghost added the in progress label Nov 19, 2018
This fixes a bug introduced in #672 whereby the lnd clients are not
properly initializing. That PR removed synchronous calls to methods that
had asynchronous alternatives, which necessitated moving code from the
synchronous `LndClient` constructor to an asynchronous init method.

Included in the code that was moved was logic to determine whether to
change the client's status from the default value of `Disabled`. This
impacted the xud initialization procedure which would only attempt
to initialize (or previously verify a connection for) an lnd client that
was not disabled.

This PR creates a new `NotInitialized` status as the default to reflect
the status of a newly created client. It gets changed when the `init`
method is called.
Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

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

Tested manually - seems to work.

@sangaman sangaman changed the title fix(lnd): don't defult lnd clients as disabled fix(lnd): don't default lnd clients as disabled Nov 19, 2018
@sangaman sangaman merged commit da3278e into master Nov 19, 2018
@ghost ghost removed the in progress label Nov 19, 2018
@sangaman sangaman deleted the fix/lnd-client-init branch February 20, 2019 05:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant