test_call_oog_reservoir_inflation_detection()¶
Documentation for tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_ordering.py::test_call_oog_reservoir_inflation_detection@c74f1a67.
Generate fixtures for these test cases for Amsterdam with:
fill -v tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_ordering.py::test_call_oog_reservoir_inflation_detection --fork Amsterdam
Detect CALL state gas ordering via reservoir inflation.
A child does CALL(value=1) to a dead address with gas tuned so the regular gas charge OOGs by 1. If state gas (new account) is incorrectly charged first, the parent's reservoir is inflated.
A single-SSTORE probe detects the inflation: with correct reservoir (0) it OOGs; with inflated reservoir it succeeds.
Source code in tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_ordering.py
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 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 | |
Parametrized Test Cases¶
This test generates 1 parametrized test case across 1 fork.