Skip to content

Commit

Permalink
fix: dont record step tracing by default (#6734)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse authored Jan 9, 2024
1 parent 105de72 commit 71d8ea5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions crates/anvil/src/eth/backend/mem/inspector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,14 @@ impl Inspector {

/// Configures the `Tracer` [`revm::Inspector`]
pub fn with_tracing(mut self) -> Self {
self.tracer = Some(TracingInspector::new(TracingInspectorConfig::all()));
self.tracer = Some(TracingInspector::new(TracingInspectorConfig::all().set_steps(false)));
self
}

/// Enables steps recording for `Tracer`.
pub fn with_steps_tracing(self) -> Self {
self.with_tracing()
pub fn with_steps_tracing(mut self) -> Self {
self.tracer = Some(TracingInspector::new(TracingInspectorConfig::all()));
self
}
}

Expand Down

0 comments on commit 71d8ea5

Please sign in to comment.