Merge pull request #3064 from pirapira/limit_struct_logs

core/vm: add limit option to LogConfig
This commit is contained in:
Jeffrey Wilcke
2016-10-31 12:07:43 +01:00
committed by GitHub
4 changed files with 16 additions and 4 deletions

View File

@ -188,7 +188,10 @@ func (evm *EVM) Run(contract *Contract, input []byte) (ret []byte, err error) {
mem.Resize(newMemSize.Uint64())
// Add a log message
if evm.cfg.Debug {
evm.cfg.Tracer.CaptureState(evm.env, pc, op, contract.Gas, cost, mem, stack, contract, evm.env.Depth(), nil)
err = evm.cfg.Tracer.CaptureState(evm.env, pc, op, contract.Gas, cost, mem, stack, contract, evm.env.Depth(), nil)
if err != nil {
return nil, err
}
}
if opPtr := evm.jumpTable[op]; opPtr.valid {