lncli: support list/delete on marcaroon IDs

This commit is contained in:
yyforyongyu
2020-07-24 00:37:13 +08:00
parent c0e2513350
commit c8a2916d91
6 changed files with 123 additions and 23 deletions

View File

@@ -113,7 +113,8 @@ func New(cfg *Config) (*Server, lnrpc.MacaroonPerms, error) {
// exist, so we need to create it with the help of the main
// macaroon service.
signerMac, err := cfg.MacService.NewMacaroon(
context.Background(), macaroons.DefaultRootKeyID, macaroonOps...,
context.Background(), macaroons.DefaultRootKeyID,
macaroonOps...,
)
if err != nil {
return nil, nil, err