test_tx_inclusion_at_execution_gas_block_limit_small()¶
Documentation for tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_block_2d_gas_accounting.py::test_tx_inclusion_at_execution_gas_block_limit_small@26332146.
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_tx_inclusion_at_execution_gas_block_limit_small --fork Amsterdam
Probe the execution-gas inclusion boundary with a small-gas tx.
The second tx's gas_limit is the remaining execution budget
plus delta. The inclusion check uses strict >, so
delta=0 must pass and delta=1 must reject with
GAS_ALLOWANCE_EXCEEDED. Catches an off-by-one >= bug.
Source code in tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_block_2d_gas_accounting.py
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 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 | |
Parametrized Test Cases¶
This test generates 2 parametrized test cases across 2 forks.