eth/tracers: add nil check

This commit is contained in:
Weixie Cui 2026-05-23 21:56:37 +08:00
parent efe58eac00
commit dbcff3a4aa

View file

@ -234,6 +234,8 @@ func (t *muxTracer) GetResult() (json.RawMessage, error) {
// Stop terminates execution of the tracer at the first opportune moment.
func (t *muxTracer) Stop(err error) {
for _, t := range t.tracers {
t.Stop(err)
if t.Stop != nil {
t.Stop(err)
}
}
}