mirror of
https://github.com/fluencelabs/tendermint
synced 2025-08-01 04:31:57 +00:00
PermFlag rename; Make Permission fields value (nonpointer) fields; Permissions & Snatives on by default; Remove dead code
This commit is contained in:
@@ -224,9 +224,9 @@ func (e ErrInvalidPermission) Error() string {
|
||||
|
||||
// Checks if a permission flag is valid (a known base chain or snative permission)
|
||||
func ValidPermN(n ptypes.PermFlag) bool {
|
||||
if n > ptypes.TopBasePermission && n < ptypes.FirstSNativePerm {
|
||||
if n > ptypes.TopBasePermFlag && n < ptypes.FirstSNativePermFlag {
|
||||
return false
|
||||
} else if n > ptypes.TopSNativePermission {
|
||||
} else if n > ptypes.TopSNativePermFlag {
|
||||
return false
|
||||
}
|
||||
return true
|
||||
|
Reference in New Issue
Block a user