aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorYoichi Hirai <i@yoichihirai.com>2016-06-22 03:03:06 +0800
committerYoichi Hirai <i@yoichihirai.com>2016-06-22 03:15:26 +0800
commit86bc7795a3dfa4032a492f3e4150c7d1506e5b2d (patch)
treeddd0af273aef36007a5b676d7e5b69e6eed88cd5 /core
parent4f3f6e28d545ffd84a98520347ba6670d80272b5 (diff)
downloadgo-tangerine-86bc7795a3dfa4032a492f3e4150c7d1506e5b2d.tar
go-tangerine-86bc7795a3dfa4032a492f3e4150c7d1506e5b2d.tar.gz
go-tangerine-86bc7795a3dfa4032a492f3e4150c7d1506e5b2d.tar.bz2
go-tangerine-86bc7795a3dfa4032a492f3e4150c7d1506e5b2d.tar.lz
go-tangerine-86bc7795a3dfa4032a492f3e4150c7d1506e5b2d.tar.xz
go-tangerine-86bc7795a3dfa4032a492f3e4150c7d1506e5b2d.tar.zst
go-tangerine-86bc7795a3dfa4032a492f3e4150c7d1506e5b2d.zip
vm: Replace some SstoreClearGas with SstoreResetGas
Diffstat (limited to 'core')
-rw-r--r--core/vm/jit.go2
-rw-r--r--core/vm/vm.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/core/vm/jit.go b/core/vm/jit.go
index f56d7c1af..e2374df42 100644
--- a/core/vm/jit.go
+++ b/core/vm/jit.go
@@ -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:
diff --git a/core/vm/vm.go b/core/vm/vm.go
index 0f93715d6..52e782b23 100644
--- a/core/vm/vm.go
+++ b/core/vm/vm.go
@@ -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: