@@ -229,7 +229,7 @@ func (g *LightningTerminal) Run() error {
229
229
superMacBaker : func (ctx context.Context , rootKeyID uint64 ,
230
230
recipe * session.MacaroonRecipe ) (string , error ) {
231
231
232
- return bakeSuperMacaroon (
232
+ return BakeSuperMacaroon (
233
233
ctx , g .basicClient , rootKeyID ,
234
234
recipe .Permissions , recipe .Caveats ,
235
235
)
@@ -504,11 +504,11 @@ func (g *LightningTerminal) startSubservers() error {
504
504
// Create a super macaroon that can be used to control lnd,
505
505
// faraday, loop, and pool, all at the same time.
506
506
ctx := context .Background ()
507
- superMacaroon , err := bakeSuperMacaroon (
507
+ superMacaroon , err := BakeSuperMacaroon (
508
508
ctx , g .basicClient , session .NewSuperMacaroonRootKeyID (
509
509
[4 ]byte {},
510
510
),
511
- getAllPermissions (false ), nil ,
511
+ GetAllPermissions (false ), nil ,
512
512
)
513
513
if err != nil {
514
514
return err
@@ -1129,9 +1129,9 @@ func (g *LightningTerminal) createRESTProxy() error {
1129
1129
return nil
1130
1130
}
1131
1131
1132
- // bakeSuperMacaroon uses the lnd client to bake a macaroon that can include
1132
+ // BakeSuperMacaroon uses the lnd client to bake a macaroon that can include
1133
1133
// permissions for multiple daemons.
1134
- func bakeSuperMacaroon (ctx context.Context , lnd lnrpc.LightningClient ,
1134
+ func BakeSuperMacaroon (ctx context.Context , lnd lnrpc.LightningClient ,
1135
1135
rootKeyID uint64 , perms []bakery.Op , caveats []macaroon.Caveat ) (string ,
1136
1136
error ) {
1137
1137
0 commit comments