mirror of
https://github.com/lightninglabs/pool.git
synced 2026-08-13 12:33:04 +02:00
Merge pull request #503 from lightninglabs/mv-perms-into-poolrpc
perms: move perms.go into poolrpc
This commit is contained in:
commit
7295f405ab
2 changed files with 3 additions and 4 deletions
|
|
@ -1,4 +1,4 @@
|
|||
package perms
|
||||
package poolrpc
|
||||
|
||||
import "gopkg.in/macaroon-bakery.v2/bakery"
|
||||
|
||||
|
|
@ -24,7 +24,6 @@ import (
|
|||
"github.com/lightninglabs/pool/clientdb"
|
||||
"github.com/lightninglabs/pool/funding"
|
||||
"github.com/lightninglabs/pool/order"
|
||||
"github.com/lightninglabs/pool/perms"
|
||||
"github.com/lightninglabs/pool/poolrpc"
|
||||
"github.com/lightninglabs/pool/terms"
|
||||
"github.com/lightningnetwork/lnd/kvdb"
|
||||
|
|
@ -199,7 +198,7 @@ func (s *Server) Start() error {
|
|||
Checkers: []macaroons.Checker{
|
||||
macaroons.IPLockChecker,
|
||||
},
|
||||
RequiredPerms: perms.RequiredPermissions,
|
||||
RequiredPerms: poolrpc.RequiredPermissions,
|
||||
DBPassword: macDbDefaultPw,
|
||||
LndClient: &s.lndServices.LndServices,
|
||||
EphemeralKey: lndclient.SharedKeyNUMS,
|
||||
|
|
@ -425,7 +424,7 @@ func (s *Server) StartAsSubserver(lndClient lnrpc.LightningClient,
|
|||
Checkers: []macaroons.Checker{
|
||||
macaroons.IPLockChecker,
|
||||
},
|
||||
RequiredPerms: perms.RequiredPermissions,
|
||||
RequiredPerms: poolrpc.RequiredPermissions,
|
||||
DBPassword: macDbDefaultPw,
|
||||
LndClient: &s.lndServices.LndServices,
|
||||
EphemeralKey: lndclient.SharedKeyNUMS,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue