Test Fork Transition¶
Documentation for tests/amsterdam/eip7778_block_gas_accounting_without_refunds/test_fork_transition.py@49633827.
Generate fixtures for these test cases for Amsterdam with:
fill -v tests/amsterdam/eip7778_block_gas_accounting_without_refunds/test_fork_transition.py --fork Amsterdam
Fork-transition tests for EIP-7778 Block Gas Accounting without Refunds.
Before the fork a transaction contributes its post-refund gas to the block, afterwards it contributes its pre-refund gas. Both observables of that switch are pinned here: the gas the block header reports, and the admission of a trailing transaction whose room in the block depends on which accumulator the client keeps.
Test Functions Overview¶
| Name | Type | Cases (Amsterdam) | Description |
|---|---|---|---|
test_block_gas_used_at_fork_transition |
blockchain_test | 1 | Pin the gas a block reports on each side of the activation boundary. |
test_trailing_tx_admission_at_fork_transition |
blockchain_test | 3 | Pin the block gas allowance flip across the activation boundary. |