mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-02-28 00:27:26 +00:00
eth/tracers: abort evm execution when trace is aborted (#23580)
This commit is contained in:
parent
84ff152de5
commit
7ada89d4e6
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue