test_block_gas_used_regular_dominates()¶
Documentation for tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_block_2d_gas_accounting.py::test_block_gas_used_regular_dominates@c74f1a67.
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_regular_dominates --fork Amsterdam
Verify block.gas_used = block_regular_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 regular gas across all transactions, since max(regular, 0) = regular.
Source code in tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_block_2d_gas_accounting.py
148 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 | |
Parametrized Test Cases¶
This test generates 1 parametrized test case across 1 fork.