Unverified Commit 7ada89d4 authored by Martin Holst Swende's avatar Martin Holst Swende Committed by GitHub

eth/tracers: abort evm execution when trace is aborted (#23580)

parent 84ff152d
......@@ -600,6 +600,7 @@ func (jst *Tracer) CaptureState(env *vm.EVM, pc uint64, op vm.OpCode, gas, cost
// If tracing was interrupted, set the error and stop
if atomic.LoadUint32(&jst.interrupt) > 0 {
jst.err = jst.reason
env.Cancel()
return
}
jst.opWrapper.op = op
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment