Merge pull request #24867 from holiman/no_preop_memexpand

core/vm: for tracing, do not report post-op memory
pull/24944/head
Péter Szilágyi 3 years ago committed by GitHub
commit 64d6c787b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      core/vm/interpreter.go

@ -223,11 +223,15 @@ func (in *EVMInterpreter) Run(contract *Contract, input []byte, readOnly bool) (
if err != nil || !contract.UseGas(dynamicCost) {
return nil, ErrOutOfGas
}
// Do tracing before memory expansion
if in.cfg.Debug {
in.cfg.Tracer.CaptureState(pc, op, gasCopy, cost, callContext, in.returnData, in.evm.depth, err)
logged = true
}
if memorySize > 0 {
mem.Resize(memorySize)
}
}
if in.cfg.Debug {
} else if in.cfg.Debug {
in.cfg.Tracer.CaptureState(pc, op, gasCopy, cost, callContext, in.returnData, in.evm.depth, err)
logged = true
}

Loading…
Cancel
Save