test_block_2d_inclusion_execution_gate_full_gas_reservation()¶
Documentation for tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_block_2d_gas_accounting.py::test_block_2d_inclusion_execution_gate_full_gas_reservation@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_block_2d_inclusion_execution_gate_full_gas_reservation --fork Amsterdam
Pin the flat execution-gas inclusion gate on a contract creation.
EIP-8037 measures min(TX_MAX_GAS_LIMIT, tx.gas) against
execution_gas_available in full, with no credit for the
NEW_ACCOUNT state gas the creation charges at its top frame.
Filler STOP txs spend execution gas only, so the state budget
stays full and only the execution gate can reject the creation.
Its gas_limit is the leftover execution budget plus
over_by, where None means the state charge itself. A
client crediting that charge would accept over_by=1 with
slack and over_by=None exactly under strict >; the flat
gate rejects both. over_by=0 is the control, valid either way.
Source code in tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_block_2d_gas_accounting.py
1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 | |
Parametrized Test Cases¶
This test generates 3 parametrized test cases across 1 fork.