mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-17 13:06:51 +02:00
lndclient: add readonly macaroon to pouch
This commit is contained in:
parent
f6a941244e
commit
899d04470b
1 changed files with 10 additions and 0 deletions
|
|
@ -53,6 +53,9 @@ type macaroonPouch struct {
|
|||
|
||||
// adminMac is the primary admin macaroon for lnd.
|
||||
adminMac serializedMacaroon
|
||||
|
||||
// readonlyMac is the primary read-only macaroon for lnd.
|
||||
readonlyMac serializedMacaroon
|
||||
}
|
||||
|
||||
// newMacaroonPouch returns a new instance of a fully populated macaroonPouch
|
||||
|
|
@ -104,5 +107,12 @@ func newMacaroonPouch(macaroonDir string) (*macaroonPouch, error) {
|
|||
return nil, err
|
||||
}
|
||||
|
||||
m.readonlyMac, err = newSerializedMacaroon(
|
||||
filepath.Join(macaroonDir, defaultReadonlyFilename),
|
||||
)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
return m, nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue