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

This commit is contained in:
Martin Holst Swende 2021-09-16 13:45:16 +02:00 committed by GitHub
parent 84ff152de5
commit 7ada89d4e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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