Remove reference to constant SysConfigMax
Previous codes use SysConfigMax to clear bits, but it's already
supported by go with simple operator. So, it replaces the logics
@@ -1309,7 +1309,7 @@ func (s *ChainScore) Ex_setDeployerWhiteListEnabled(yn bool) error {
if yn {
confValue |= state.SysConfigDeployerWhiteList
} else {
- confValue &= state.SysConfigMax - state.SysConfigDeployerWhiteList - 1
+ confValue &^= state.SysConfigDeployerWhiteList
}
return scoredb.NewVarDB(as, state.VarServiceConfig).Set(confValue)
}
