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

pull/29100/head
Andrei Silviu Dragnea 9 months ago committed by GitHub
parent 45a272c7b9
commit 5a0f468f8c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      eth/tracers/native/call.go

@ -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

Loading…
Cancel
Save