test_block_gas_used_state_dominates()¶
Documentation for tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_block_2d_gas_accounting.py::test_block_gas_used_state_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_state_dominates --fork Amsterdam
Verify block.gas_used = block_state_gas when state > regular.
Each tx performs zero-to-nonzero SSTOREs. Since state gas per SSTORE exceeds regular gas, block_state_gas exceeds block_regular_gas and becomes the header gas_used.
The spillover variant provides reservoir for only one SSTORE per tx; the remaining state gas spills into gas_left. Block-level accounting must still separate the two dimensions.
Source code in tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_block_2d_gas_accounting.py
97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 | |
Parametrized Test Cases¶
This test generates 4 parametrized test cases across 1 fork.