Skip to content

Commit

Permalink
Remove temp debug tracing
Browse files Browse the repository at this point in the history
  • Loading branch information
valo committed Jun 19, 2023
1 parent 5e41ba3 commit d9775e8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions crates/revm/src/inspector/customprinter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,9 @@ impl<DB: Database> Inspector<DB> for CustomPrintTracer {
let opcode_str = opcode::OPCODE_JUMPMAP[opcode as usize];

let gas_remaining = self.gas_inspector.gas_remaining();
let depth = data.journaled_state.depth();

println!(
"depth:{}, PC:{}, gas:{:#x}({}), OPCODE: {:?}({:?}) refund:{:#x}({}) Stack:{:?}, Data size:{} Free stack:{}",
depth,
"PC:{}, gas:{:#x}({}), OPCODE: {:?}({:?}) refund:{:#x}({}) Stack:{:?}, Data size:{}",
interp.program_counter(),
gas_remaining,
gas_remaining,
Expand All @@ -40,7 +38,6 @@ impl<DB: Database> Inspector<DB> for CustomPrintTracer {
interp.gas.refunded(),
interp.stack.data(),
interp.memory.data().len(),
stacker::remaining_stack().unwrap()
);

self.gas_inspector.step(interp, data);
Expand Down

0 comments on commit d9775e8

Please sign in to comment.