mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-01-19 14:45:23 +01:00
16463d4bd4
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 https://github.com/lightningnetwork/lnd/discussions/7566.
620 B
620 B
Release Notes
DB
- Split channeldb
UpdateInvoice
implementation logic in different update types.
Watchtowers
- Let the task pipeline only carry wtdb.BackupIDs instead of the entire retribution struct. This reduces the amount of data that needs to be held in memory.
Misc
- Generate default macaroons independently on wallet unlock or create.
Contributors (Alphabetical Order)
- Daniel McNally
- Elle Mouton
- Jordi Montes