vm: Replace some SstoreClearGas with SstoreResetGas

This commit is contained in:
Yoichi Hirai
2016-06-21 21:15:26 +02:00
parent 4f3f6e28d5
commit 86bc7795a3
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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:
+1 -1
View File
@@ -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: