test_sstore_restoration_reservoir_spillover()¶
Documentation for tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_sstore.py::test_sstore_restoration_reservoir_spillover@87aba1a3.
Generate fixtures for these test cases for Amsterdam with:
fill -v tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_sstore.py::test_sstore_restoration_reservoir_spillover --fork Amsterdam
Verify restoration refund when state gas spilled into gas_left.
With tx.gas at the cap, reservoir is zero. SSTORE 0 to 1 state
gas comes from gas_left. At x to 0 the refund goes to
state_gas_reservoir (not back to gas_left), moving gas between
buckets. Block state gas is zero.
Source code in tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_sstore.py
1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 | |
Parametrized Test Cases¶
This test generates 1 parametrized test case across 1 fork.