diff --git a/eth/stagedsync/stage_custom_trace.go b/eth/stagedsync/stage_custom_trace.go index 0aa09f25ea7..8b668819898 100644 --- a/eth/stagedsync/stage_custom_trace.go +++ b/eth/stagedsync/stage_custom_trace.go @@ -181,7 +181,7 @@ func customTraceBatch(ctx context.Context, cfg *exec3.ExecArgs, tx kv.TemporalRw NewTracer: func() exec3.GenericTracer { return nil }, Reduce: func(txTask *state.TxTask, tx kv.Tx) (err error) { if txTask.Error != nil { - return err + return txTask.Error } if txTask.Tx != nil {