regeneration of binding code.

This commit is contained in:
vsmk98 2020-03-27 15:10:47 +08:00
parent b756917487
commit 1b74c63b2e
17 changed files with 35 additions and 37 deletions

View File

@ -110,6 +110,24 @@ type PermissionConfig struct {
SubOrgBreadth *big.Int `json:"subOrgBreadth"`
}
var syncStarted = false
var DefaultAccess = FullAccess
var QIP714BlockReached = false
var networkAdminRole string
var orgAdminRole string
const defaultOrgMapLimit = 2000
const defaultRoleMapLimit = 2500
const defaultNodeMapLimit = 1000
const defaultAccountMapLimit = 6000
var OrgInfoMap = NewOrgCache()
var NodeInfoMap = NewNodeCache()
var RoleInfoMap = NewRoleCache()
var AcctInfoMap = NewAcctCache()
type OrgKey struct {
OrgId string
}
@ -121,6 +139,7 @@ type OrgCache struct {
populateCacheFunc func(orgId string) *OrgInfo
}
func (o *OrgCache) PopulateCacheFunc(cf func(string) *OrgInfo) {
o.populateCacheFunc = cf
}
@ -212,27 +231,6 @@ func NewAcctCache() *AcctCache {
return &acctCache
}
var syncStarted = false
var DefaultAccess = FullAccess
var QIP714BlockReached = false
var networkAdminRole string
var orgAdminRole string
//const defaultOrgMapLimit = 2000
//const defaultRoleMapLimit = 2500
//const defaultNodeMapLimit = 1000
//const defaultAccountMapLimit = 6000
const defaultOrgMapLimit = 2
const defaultRoleMapLimit = 2
const defaultNodeMapLimit = 2
const defaultAccountMapLimit = 2
var OrgInfoMap = NewOrgCache()
var NodeInfoMap = NewNodeCache()
var RoleInfoMap = NewRoleCache()
var AcctInfoMap = NewAcctCache()
func (pc *PermissionConfig) IsEmpty() bool {
return pc.InterfAddress == common.HexToAddress("0x0")
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long