aboutsummaryrefslogtreecommitdiffstats
path: root/core/execution.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-12-19 20:59:49 +0800
committerobscuren <geffobscura@gmail.com>2014-12-19 20:59:49 +0800
commitf5b8f3d41b533d51eb81e895ed9b6aa31d7aaaef (patch)
tree1b8cf4b18039278254c4ece4b1f2e2d12a8f91d9 /core/execution.go
parent0e93b98533968f4a0033ec6214391f5ca647a956 (diff)
downloadgo-tangerine-f5b8f3d41b533d51eb81e895ed9b6aa31d7aaaef.tar.gz
go-tangerine-f5b8f3d41b533d51eb81e895ed9b6aa31d7aaaef.tar.zst
go-tangerine-f5b8f3d41b533d51eb81e895ed9b6aa31d7aaaef.zip
Removed OOG check. Revert should always happen.
Diffstat (limited to 'core/execution.go')
-rw-r--r--core/execution.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/core/execution.go b/core/execution.go
index 0b5e0558f..44dbd3ace 100644
--- a/core/execution.go
+++ b/core/execution.go
@@ -56,9 +56,7 @@ func (self *Execution) exec(code, contextAddr []byte, caller vm.ClosureRef) (ret
snapshot := env.State().Copy()
defer func() {
- if vm.IsOOGErr(err) {
- env.State().Set(snapshot)
- }
+ env.State().Set(snapshot)
chainlogger.Debugf("post state %x\n", env.State().Root())
}()