Expand description
revm inspector that accumulates per-transaction multi-gas by dimension.
Each opcode’s observed gas delta (step to step_end) is split with
classify. Frame-spawning opcodes are special: their delta includes the
gas forwarded to the child frame, whose own opcodes are observed separately,
so the forwarded portion is removed via the call/create hooks. Contract
code-deposit gas is charged at frame return rather than at an opcode, so it
is added in create_end.
Structs§
- Multi
GasInspector - Accumulates per-transaction multi-gas across every executed frame.
Type Aliases§
- Multi
GasSink - Shared slot a
MultiGasInspectorwrites each transaction’s multi-gas to, read by the block executor after execution.