-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
lnd: generate default macaroons independently #7592
lnd: generate default macaroons independently #7592
Conversation
8c3e421
to
589fb8b
Compare
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.
Very nice addition, will definitely be useful to many users.
589fb8b
to
c3c67a9
Compare
Thanks @guggero! I believe I've addressed all your feedback. |
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.
tACK, LGTM 🎉
c3c67a9
to
ab7a3f4
Compare
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.
tACK & LGTM! 🔥 thanks for this!
@sputn1ck: review reminder |
@sangaman - this juuuust missed the 0.16.1 cutoff :( can you more the release note to the 0.17.0 doc please? |
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.
tACK! 🚀
This modifies the `genMacaroons` logic to indepently check for each of the three default macaroons (admin, readonly, invoice) and generate whichever are missing. Previously, this was an all or nothing routine. In other words, either all three didn't exist on disk and all three are created, or no macaroons are created. Although that works for the first run of a new node, it can result in inconsistent states if only one or two of the macaroons is deleted. See lightningnetwork#7566.
ab7a3f4
to
16463d4
Compare
I moved the release note from 0.16.1 to 0.17.0. |
Change Description
This modifies the
genMacaroons
logic to indepently check for each of the three default macaroons (admin, readonly, invoice) and generate whichever are missing. Previously, this was an all or nothing routine. In other words, either all three didn't exist on disk and all three are created, or no macaroons are created. Although that works for the first run of a new node, it can result in inconsistent states if only one or two of the macaroons is deleted.See #7566.
Steps to Test
admin.macaroon
are created.admin.macaroon
.admin.macaroon
has been recreated.