新注册的用户请输入邮箱并保存,随后登录邮箱激活账号。后续可直接使用邮箱登录!

Commit 98c4f732 authored by 志宏 蔡's avatar 志宏 蔡

feat: resolve the nil pointer for enable_optimize_charge_gas. --bug=1004768

parent f02a1b84
......@@ -346,7 +346,7 @@ func (r *ChainCoreRuntime) CoreUpdate(txSimContext protocol.TxSimContext, params
}
if enableOptimizeChargeGas, ok := params[paramNameEnableOptimizeChargeGas]; ok {
if !chainConfig.AccountConfig.EnableGas {
if chainConfig.AccountConfig == nil || !chainConfig.AccountConfig.EnableGas {
return nil, errors.New("can not set `enable_optimize_charge_gas` flag when `enable_gas` is disabled")
}
parseBool, _ := strconv.ParseBool(string(enableOptimizeChargeGas))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment