Commit 852715c
feat(spec-specs, tests): Add EIP-7976 Increase Calldata Floor Cost (#2861)
* feat(tests): adds EIP-7976 test and required framework changes (#2115)
* feat(tests): adds tests and src changes for 7976
Co-authored-by: Toni Wahrstätter <51536394+nerolation@users.noreply.github.com>
* feat: EIP got updated
* fix: ruff
* feat: implemented PR feedback
* fix: make eip-7934 block-size filler fork-aware for amsterdam by enforcing tx gas caps and adaptive calldata sizing so --until=amsterdam fills pass
* fix: fix
* fix: fix
* fix: mypy
---------
Co-authored-by: Toni Wahrstätter <51536394+nerolation@users.noreply.github.com>
* refactor(tests-eip-7976): Condition tests to EIP inclusion
* chores: update refspec
* fix(tests): drop GAS_ prefix from gas_costs attribute references
Align the EIP-7976 mixin and tests with the GasCosts dataclass rename
on forks/amsterdam (GAS_TX_BASE -> TX_BASE, GAS_TX_DATA_TOKEN_FLOOR ->
TX_DATA_TOKEN_FLOOR, GAS_VERY_LOW -> VERY_LOW, etc.).
* fix(tests): compose EIP-7976 floor cost via calldata_gas_calculator
Override `calldata_gas_calculator` (floor mode only) instead of
`transaction_data_floor_cost_calculator`. The previous override
shadowed EIP-7981's `transaction_data_floor_cost_calculator` in the
Amsterdam MRO (auto-loader sorts by EIP number ascending, so EIP7976
is more derived and its method wins without calling super), dropping
the access list floor contribution. Routing the change through
`calldata_gas_calculator` lets EIP-7623's data floor calculator pick
it up, which EIP-7981 then extends via super.
* fix: ci fails due to static tests out of gas
* fix: mario feedback
* fix: remove duplicate test
---------
Co-authored-by: Toni Wahrstätter <51536394+nerolation@users.noreply.github.com>
Co-authored-by: marioevz <marioevz@gmail.com>
Co-authored-by: spencer-tb <spencer.tb@ethereum.org>1 parent b7a2066 commit 852715c
15 files changed
Lines changed: 2446 additions & 9 deletions
File tree
- packages/testing/src/execution_testing/forks/forks/eips/amsterdam
- src/ethereum/forks/amsterdam
- vm
- tests
- amsterdam/eip7976_increase_calldata_floor_cost
- ported_static
- stRandom2
- stRevertTest
- stTransactionTest
Lines changed: 47 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
611 | 611 | | |
612 | 612 | | |
613 | 613 | | |
614 | | - | |
615 | | - | |
| 614 | + | |
| 615 | + | |
616 | 616 | | |
617 | 617 | | |
618 | 618 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
| 109 | + | |
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
0 commit comments