diff options
author | Péter Szilágyi <peterke@gmail.com> | 2017-12-18 22:16:59 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-18 22:16:59 +0800 |
commit | fe070ab5c32702033489f1b9d1655ea1b894c29e (patch) | |
tree | f76b578f2008cec5da8a49158e545fcc260cbe10 /core/vm/interpreter.go | |
parent | 8c33ac10bff32d082facfd274188334a3236a4e7 (diff) | |
parent | fb5f25eeee6091ab4f70506a9b0ff36affe4d879 (diff) | |
download | go-tangerine-fe070ab5c32702033489f1b9d1655ea1b894c29e.tar.gz go-tangerine-fe070ab5c32702033489f1b9d1655ea1b894c29e.tar.zst go-tangerine-fe070ab5c32702033489f1b9d1655ea1b894c29e.zip |
Merge pull request #15674 from chfast/vm-no-snapshot-param
core/vm: Remove snapshot param from Interpreter.Run()
Diffstat (limited to 'core/vm/interpreter.go')
-rw-r--r-- | core/vm/interpreter.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/vm/interpreter.go b/core/vm/interpreter.go index ac6000f97..455f970dd 100644 --- a/core/vm/interpreter.go +++ b/core/vm/interpreter.go @@ -107,9 +107,9 @@ func (in *Interpreter) enforceRestrictions(op OpCode, operation operation, stack // the return byte-slice and an error if one occurred. // // It's important to note that any errors returned by the interpreter should be -// considered a revert-and-consume-all-gas operation. No error specific checks -// should be handled to reduce complexity and errors further down the in. -func (in *Interpreter) Run(snapshot int, contract *Contract, input []byte) (ret []byte, err error) { +// considered a revert-and-consume-all-gas operation except for +// errExecutionReverted which means revert-and-keep-gas-left. +func (in *Interpreter) Run(contract *Contract, input []byte) (ret []byte, err error) { // Increment the call depth which is restricted to 1024 in.evm.depth++ defer func() { in.evm.depth-- }() |