@ -105,11 +105,11 @@ var (
} } ,
} } ,
}
}
// a llPermissions is the list of all existing permissions that exist
// A llPermissions is the list of all existing permissions that exist
// for loopd's RPC. The default macaroon that is created on startup
// for loopd's RPC. The default macaroon that is created on startup
// contains all these permissions and is therefore equivalent to lnd's
// contains all these permissions and is therefore equivalent to lnd's
// admin.macaroon but for loop.
// admin.macaroon but for loop.
a llPermissions = [ ] bakery . Op { {
A llPermissions = [ ] bakery . Op { {
Entity : "loop" ,
Entity : "loop" ,
Action : "out" ,
Action : "out" ,
} , {
} , {
@ -195,9 +195,9 @@ func (d *Daemon) startMacaroonService() error {
// existing permissions (equivalent to the admin.macaroon in
// existing permissions (equivalent to the admin.macaroon in
// lnd). Custom macaroons can be created through the bakery
// lnd). Custom macaroons can be created through the bakery
// RPC. Add our debug permissions if required.
// RPC. Add our debug permissions if required.
allPermissions = append ( a llPermissions, debugPermissions ... )
AllPermissions = append ( A llPermissions, debugPermissions ... )
loopMac , err := d . macaroonService . Oven . NewMacaroon (
loopMac , err := d . macaroonService . Oven . NewMacaroon (
idCtx , bakery . LatestVersion , nil , a llPermissions... ,
idCtx , bakery . LatestVersion , nil , A llPermissions... ,
)
)
if err != nil {
if err != nil {
return err
return err