Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Commit

Permalink
Only trace precompiled output if depth == 0
Browse files Browse the repository at this point in the history
  • Loading branch information
sorpaas committed Apr 27, 2018
1 parent 60457c7 commit 7b343e4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ethcore/src/executive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -429,8 +429,10 @@ impl<'a, B: 'a + StateBackend> Executive<'a, B> {
output.write(0, &builtin_out_buffer);

let mut trace_output = tracer.prepare_trace_output();
if let Some(out) = trace_output.as_mut() {
*out = output.to_owned();
if self.depth == 0 {
if let Some(out) = trace_output.as_mut() {
*out = output.to_owned();
}
}

tracer.trace_call(
Expand Down

0 comments on commit 7b343e4

Please sign in to comment.