Secure trie

This commit is contained in:
obscuren
2015-02-28 20:52:10 +01:00
parent 7ab13e0f17
commit ae45a39dc1
4 changed files with 33 additions and 3 deletions

View File

@ -61,10 +61,10 @@ func (self *Execution) exec(code, contextAddr []byte, caller vm.ContextRef) (ret
snapshot := env.State().Copy()
start := time.Now()
ret, err = evm.Run(to, caller, code, self.value, self.Gas, self.price, self.input)
chainlogger.Debugf("vm took %v\n", time.Since(start))
if err != nil {
env.State().Set(snapshot)
}
chainlogger.Debugf("vm took %v\n", time.Since(start))
return
}