Skip to content

Conversation

@guggero
Copy link
Contributor

@guggero guggero commented Feb 5, 2021

Fixes #299 by allowing only one macaroon to be specified in the
--lnd.macaroonpath config option/command line flag.

Pull Request Checklist

  • Update release_notes.md if your PR contains major features, breaking changes or bugfixes

Fixes lightninglabs#299 by allowing only one macaroon to be specified in the
--lnd.macaroonpath config option/command line flag.
@guggero guggero requested review from bhandras and carlaKC February 5, 2021 11:58
Copy link
Contributor

@carlaKC carlaKC left a comment

Choose a reason for hiding this comment

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

niceeee 🌈

Docker is very flexible so you can use that information however you choose. This guide isn't meant to be prescriptive.


### Example: Running loopd
Copy link
Contributor

Choose a reason for hiding this comment

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

🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It was a weird non-breaking space that probably got in there through copy/paste. My IDE showed it so I removed it.

Copy link
Member

@bhandras bhandras left a comment

Choose a reason for hiding this comment

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

LGTM

// Make sure only one of the macaroon options is used.
switch {
case cfg.Lnd.MacaroonPath != "" && cfg.Lnd.MacaroonDir != "":
return fmt.Errorf("use --lnd.macaroonpath only")
Copy link
Member

Choose a reason for hiding this comment

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

nit: Shouldn't this be either macaroondir or macaroonpath?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes. But since the macaroondir is deprecated, this error is a bit clearer what the action should be. And it's the exact same commit that I added to Pool, so at least the error messages will be the same :)

@guggero guggero merged commit 67f4171 into lightninglabs:master Feb 5, 2021
@guggero guggero deleted the single-macaroon branch February 5, 2021 15:02
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

Successfully merging this pull request may close these issues.

Don't require all macaroons to use loopd

3 participants