test_cumulative_block_state_gas_boundary()¶
Documentation for tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_block_2d_gas_accounting.py::test_cumulative_block_state_gas_boundary@87aba1a3.
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_cumulative_block_state_gas_boundary --fork Amsterdam
Probe the block state-gas inclusion gate with spill-funded usage.
tx1 gets no state-gas reservoir (small gas_limit), so its SSTORE-set state gas reaches block_state_gas_used only via spillover, and its gas_limit exactly fills the block. tx2's gas_limit is the remaining state budget plus delta, below both the per-tx cap and the remaining regular budget, so only the state gate can reject it: delta=0 must be accepted (strict >) and delta=1 rejected. test_block_state_gas_limit_boundary covers this gate with a reservoir-funded tx1 and an above-cap tx2.
Source code in tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_block_2d_gas_accounting.py
929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 | |
Parametrized Test Cases¶
This test generates 2 parametrized test cases across 1 fork.