test_block_gas_used_execution_dominates()¶
Documentation for tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_block_2d_gas_accounting.py::test_block_gas_used_execution_dominates@26332146.
Generate fixtures for these test cases for Amsterdam with:
fill -v tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_block_2d_gas_accounting.py::test_block_gas_used_execution_dominates --fork Amsterdam
Verify block.gas_used = block_execution_gas when state gas is zero.
A block containing only STOP transactions to existing contracts produces no state gas. The block header gas_used must equal the sum of execution gas across all transactions, since max(execution, 0) = execution.
Source code in tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_block_2d_gas_accounting.py
149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 | |
Parametrized Test Cases¶
This test generates 1 parametrized test case across 1 fork.