cleanups, fix AllSet

This commit is contained in:
Ethan Buchman
2015-05-21 15:51:57 -04:00
committed by Jae Kwon
parent b2282d5a39
commit d824e1b731
4 changed files with 33 additions and 16 deletions

View File

@ -93,8 +93,10 @@ func MakeGenesisState(db dbm.DB, genDoc *GenesisDoc) *State {
if genDoc.Params != nil && genDoc.Params.GlobalPermissions != nil {
globalPerms = genDoc.Params.GlobalPermissions
// XXX: make sure the set bits are all true
// Without it the HasPermission() functions will recurse till death
globalPerms.Base.SetBit = ptypes.AllSet
}
permsAcc := &account.Account{
Address: ptypes.GlobalPermissionsAddress,
PubKey: nil,