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

feat(lnd): wait for macaroon after InitWallet #1769

Closed
wants to merge 1 commit into from

Conversation

sangaman
Copy link
Collaborator

This waits for the admin.macaroon to be created after calling InitWallet.

@sangaman sangaman added the lightning Lightning network & lnd integration label Jul 29, 2020
@sangaman sangaman self-assigned this Jul 29, 2020
@kilrau kilrau requested a review from a user July 29, 2020 22:45
@kilrau
Copy link
Contributor

kilrau commented Jul 29, 2020

Follow-up to #1765 ? A better description why this is needed would be helpful I think.

This waits for the admin.macaroon to be created after calling
InitWallet.
@sangaman
Copy link
Collaborator Author

Follow-up to #1765 ? A better description why this is needed would be helpful I think.

Yes, I had meant to reference this comment: #1765 (comment)

I'm thinking here it might make sense to explicitly wait for admin.macaroon to be created after xud performs the InitWallet call to lnd. That way we can wait to respond to the xud InitNode call until all lnds have finished creating admin.macaroon and are ready to receive calls. I'll add that in a separate commit.

This makes loading/waiting for the admin.macaroon file part of the InitNode flow, which seems sensible to me.

@sangaman sangaman force-pushed the lnd/wait-macaroon-on-initwallet branch from 98b4b06 to e983be0 Compare July 30, 2020 12:59
@raladev raladev self-requested a review July 30, 2020 13:45
@raladev
Copy link
Contributor

raladev commented Jul 30, 2020

  • it does not work well. I got timeout err reliably when create new wallet for both lnds.
    Screenshot from 2020-07-30 18-26-40
    Screenshot from 2020-07-30 18-26-16

Copy link
Contributor

@raladev raladev left a comment

Choose a reason for hiding this comment

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

Above

@kilrau kilrau added the P3 low priority label Aug 10, 2020
@kilrau
Copy link
Contributor

kilrau commented Sep 3, 2020

Do we still want this one since there is a conflict with how xud-docker handles the create flow? @sangaman

@ghost
Copy link

ghost commented Nov 6, 2020

Do we still want this?

@sangaman
Copy link
Collaborator Author

sangaman commented Nov 9, 2020

I think it probably makes sense to close - as it stands it doesn't seem there isn't a need for it and clearly there's some issue with my implementation as-is and it's not clear to me what it is. The general idea still makes sense to me, though (that we should wait for the macaroon to be created by lnd before we move along with making calls to lnd). In case we face any issues regarding lnd macaroon creation I figure we can revisit this, but it's probably not worth the attention right now.

@sangaman sangaman closed this Nov 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lightning Lightning network & lnd integration P3 low priority
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants