eth/tracers: Fix callTracer logs on onlyTopCall == true (#29068)

This commit is contained in:
Andrei Silviu Dragnea 2024-02-27 10:29:12 +01:00 committed by GitHub
parent 45a272c7b9
commit 5a0f468f8c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -161,7 +161,7 @@ func (t *callTracer) CaptureState(pc uint64, op vm.OpCode, gas, cost uint64, sco
return
}
// Avoid processing nested calls when only caring about top call
if t.config.OnlyTopCall && depth > 0 {
if t.config.OnlyTopCall && depth > 1 {
return
}
// Skip if tracing was interrupted