Skip to content

Commit

Permalink
add println
Browse files Browse the repository at this point in the history
  • Loading branch information
rakita committed Dec 7, 2022
1 parent 100f60f commit 8efae11
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions crates/revm/src/inspector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,12 @@ impl<DB: Database> Inspector<DB> for GasInspector {
self.full_gas_block = interp.contract.gas_block(previous_pc);
self.was_return = false;
}
println!(
"rem:{},full_gas_block {} reduced_gas_block {}",
interp.gas.remaining(),
self.full_gas_block,
self.reduced_gas_block
);
self.gas_remaining =
interp.gas.remaining() + (self.full_gas_block - self.reduced_gas_block);

Expand Down

0 comments on commit 8efae11

Please sign in to comment.