-
Notifications
You must be signed in to change notification settings - Fork 122
Support single macaroon for lnd #334
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
Conversation
Fixes lightninglabs#299 by allowing only one macaroon to be specified in the --lnd.macaroonpath config option/command line flag.
carlaKC
left a comment
There was a problem hiding this 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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤔
There was a problem hiding this comment.
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.
bhandras
left a comment
There was a problem hiding this 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") |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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 :)
Fixes #299 by allowing only one macaroon to be specified in the
--lnd.macaroonpath config option/command line flag.
Pull Request Checklist
release_notes.mdif your PR contains major features, breaking changes or bugfixes