test_reservoir_restored_after_child_spill_and_halt()¶
Documentation for tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_call.py::test_reservoir_restored_after_child_spill_and_halt@622620d8.
Generate fixtures for these test cases for Amsterdam with:
fill -v tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_call.py::test_reservoir_restored_after_child_spill_and_halt --fork Amsterdam
Test parent gets reservoir back after child spill + halt.
The child performs two SSTOREs (zero-to-nonzero), exhausting the
reservoir and spilling into gas_left, then hits INVALID causing
an exceptional halt. The child's halt resets its frame to (0,
R0_child) — only the reservoir-portion is returned to the
parent; the spilled gas stays burned (re-classified as execution).
The parent does two SSTOREs: the first drains the recovered
reservoir, the second spills from the parent's own gas_left.
The receipt pins the halted child's whole budget as consumed, so
a credit of the burned spill back to the parent is caught.
Source code in tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_call.py
379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 | |
Parametrized Test Cases¶
This test generates 3 parametrized test cases across 1 fork.