lndclient: add readonly macaroon to pouch

pull/181/head
Oliver Gugger 4 years ago
parent f6a941244e
commit 899d04470b
No known key found for this signature in database
GPG Key ID: 8E4256593F177720

@ -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…
Cancel
Save