test_block_gas_used_dimension_switch_at_transition()¶
Documentation for tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_fork_transition.py::test_block_gas_used_dimension_switch_at_transition@622620d8.
Generate fixtures for these test cases for Amsterdam with:
fill -v tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_fork_transition.py::test_block_gas_used_dimension_switch_at_transition --fork Amsterdam
Test the block header switches to two-dimensional accounting at the fork boundary.
The same storage-creating transaction is mined either side of the
boundary. Before the fork the header reports the scalar execution
total; after it the header reports max(execution, state), which the
state charge dominates. Only a header assertion separates the two —
the post-state is identical.
Source code in tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_fork_transition.py
47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 | |
Parametrized Test Cases¶
This test generates 1 parametrized test case across 1 fork.