forked from cerc-io/plugeth
eth/tracers: abort evm execution when trace is aborted (#23580)
This commit is contained in:
parent
84ff152de5
commit
7ada89d4e6
@ -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 tracing was interrupted, set the error and stop
|
||||||
if atomic.LoadUint32(&jst.interrupt) > 0 {
|
if atomic.LoadUint32(&jst.interrupt) > 0 {
|
||||||
jst.err = jst.reason
|
jst.err = jst.reason
|
||||||
|
env.Cancel()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
jst.opWrapper.op = op
|
jst.opWrapper.op = op
|
||||||
|
Loading…
Reference in New Issue
Block a user