diff --git a/rpcserver.go b/rpcserver.go index 784179f4e..fde2d3b89 100644 --- a/rpcserver.go +++ b/rpcserver.go @@ -213,9 +213,9 @@ func stringInSlice(a string, slice []string) bool { return false } -// mainRPCServerPermissions returns a mapping of the main RPC server calls to +// MainRPCServerPermissions returns a mapping of the main RPC server calls to // the permissions they require. -func mainRPCServerPermissions() map[string][]bakery.Op { +func MainRPCServerPermissions() map[string][]bakery.Op { return map[string][]bakery.Op{ "/lnrpc.Lightning/SendCoins": {{ Entity: "onchain", @@ -640,7 +640,7 @@ func newRPCServer(cfg *Config, s *server, macService *macaroons.Service, // Next, we need to merge the set of sub server macaroon permissions // with the main RPC server permissions so we can unite them under a // single set of interceptors. - permissions := mainRPCServerPermissions() + permissions := MainRPCServerPermissions() for _, subServerPerm := range subServerPerms { for method, ops := range subServerPerm { // For each new method:ops combo, we also ensure that