test_block_gas_used_at_fork_transition()¶
Documentation for tests/amsterdam/eip7778_block_gas_accounting_without_refunds/test_fork_transition.py::test_block_gas_used_at_fork_transition@622620d8.
Generate fixtures for these test cases for Amsterdam with:
fill -v tests/amsterdam/eip7778_block_gas_accounting_without_refunds/test_fork_transition.py::test_block_gas_used_at_fork_transition --fork Amsterdam
Pin the gas a block reports on each side of the activation boundary.
The same refunding transaction shape is sent in a pre-fork and a post-fork block, each with its own sender so the receipt and balance pins stay per-fork. The header reports post-refund gas before the fork and pre-refund gas after it, while the sender is charged the post-refund amount on both sides.
Source code in tests/amsterdam/eip7778_block_gas_accounting_without_refunds/test_fork_transition.py
141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 | |
Parametrized Test Cases¶
This test generates 1 parametrized test case across 1 fork.