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

Co-authored-by: Andrei Silviu Dragnea <andreisilviudragnea@gmail.com>
This commit is contained in:
Daniel Liu 2025-09-09 16:32:17 +08:00 committed by GitHub
parent a8c252f5bc
commit 2ba36f3f0d
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