Skip to content

Commit 8cc517c

Browse files
committed
Log effective gas calculation
1 parent 4dddde8 commit 8cc517c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

frame/evm/src/runner/stack.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,14 @@ where
305305
core::cmp::max(used_gas, pov_gas),
306306
storage_gas,
307307
));
308+
log::debug!(
309+
target: "evm",
310+
"Calculating effective gas: max(used: {}, pov: {}, storage: {}) = {}",
311+
used_gas,
312+
pov_gas,
313+
storage_gas,
314+
effective_gas
315+
);
308316

309317
(reason, retv, used_gas, effective_gas)
310318
});

0 commit comments

Comments
 (0)