mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
eth/tracers/call: Fix call_tracer withLog == true && onlyTopCall == true
This commit is contained in:
parent
45a272c7b9
commit
f7e9ff1bbf
1 changed files with 1 additions and 1 deletions
|
|
@ -161,7 +161,7 @@ func (t *callTracer) CaptureState(pc uint64, op vm.OpCode, gas, cost uint64, sco
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
// Avoid processing nested calls when only caring about top call
|
// Avoid processing nested calls when only caring about top call
|
||||||
if t.config.OnlyTopCall && depth > 0 {
|
if t.config.OnlyTopCall && depth > 1 {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
// Skip if tracing was interrupted
|
// Skip if tracing was interrupted
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue