Removed OOG check. Revert should always happen.

This commit is contained in:
obscuren
2014-12-19 13:59:49 +01:00
parent 0e93b98533
commit f5b8f3d41b
3 changed files with 11 additions and 6 deletions

View File

@@ -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())
}()