test_block_2d_gas_valid_when_cumulative_exceeds_limit()¶
Documentation for tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_reservoir.py::test_block_2d_gas_valid_when_cumulative_exceeds_limit@c74f1a67.
Generate fixtures for these test cases for Amsterdam with:
fill -v tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_reservoir.py::test_block_2d_gas_valid_when_cumulative_exceeds_limit --fork Amsterdam
Verify block validity under 2D gas when sum(txGasUsed) > gas_limit.
EIP-8037 block validity: max(regular, state) <= gas_limit. Receipt cumulative_gas_used sums both dimensions per-tx, so it can legitimately exceed gas_limit. Clients must not use the 1D cumulative check for block validation.
Source code in tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_reservoir.py
596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 | |
Parametrized Test Cases¶
This test generates 1 parametrized test case across 1 fork.