mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-12 01:41:36 +00:00
eth/tracers: Fix callTracer logs on onlyTopCall == true (#29068)
This commit is contained in:
parent
45a272c7b9
commit
5a0f468f8c
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