提交 86bc7795 编写于 作者: Y Yoichi Hirai

vm: Replace some SstoreClearGas with SstoreResetGas

上级 4f3f6e28
......@@ -421,7 +421,7 @@ func jitCalculateGasAndSize(env Environment, contract *Contract, instr instructi
g = params.SstoreClearGas
} else {
g = params.SstoreClearGas
g = params.SstoreResetGas
}
gas.Set(g)
case SUICIDE:
......
......@@ -306,7 +306,7 @@ func calculateGasAndSize(env Environment, contract *Contract, caller ContractRef
g = params.SstoreClearGas
} else {
// non 0 => non 0 (or 0 => 0)
g = params.SstoreClearGas
g = params.SstoreResetGas
}
gas.Set(g)
case SUICIDE:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册