Skip to content

Commit

Permalink
eth/tracers: abort evm execution when trace is aborted (#23580)
Browse files Browse the repository at this point in the history
  • Loading branch information
holiman committed Sep 16, 2021
1 parent 84ff152 commit 7ada89d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions eth/tracers/tracer.go
Expand Up @@ -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
Expand Down

0 comments on commit 7ada89d

Please sign in to comment.