mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-31 17:51:33 +02:00
macaroons: rename PermissionsConstraint to AllowConstraint
This commit is contained in:
committed by
Olaoluwa Osuntokun
parent
7df503575c
commit
1379488e72
2
lnd.go
2
lnd.go
@@ -569,7 +569,7 @@ func genMacaroons(svc *bakery.Service, admFile, roFile string) error {
|
||||
|
||||
// Generate the read-only macaroon and write it to a file.
|
||||
roMacaroon, err := macaroons.AddConstraints(admMacaroon,
|
||||
macaroons.PermissionsConstraint(roPermissions...))
|
||||
macaroons.AllowConstraint(roPermissions...))
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
Reference in New Issue
Block a user