Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests(eip7742): initial tests for eip7742 #986

Merged
merged 6 commits into from
Dec 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Test fixtures for use by clients are available for each release on the [Github r
- ✨ Update [EIP-6110](https://eips.ethereum.org/EIPS/eip-6110), [EIP-7002](https://eips.ethereum.org/EIPS/eip-7002), [EIP-7251](https://eips.ethereum.org/EIPS/eip-7251), [EIP-7685](https://eips.ethereum.org/EIPS/eip-7685), and [EIP-7702](https://eips.ethereum.org/EIPS/eip-7702) tests for Devnet-4 ([#832](https://github.com/ethereum/execution-spec-tests/pull/832))
- ✨ [EIP-7702](https://eips.ethereum.org/EIPS/eip-7702) many delegations test ([#923](https://github.com/ethereum/execution-spec-tests/pull/923))
- ✨ [EIP-7702](https://eips.ethereum.org/EIPS/eip-7702) set code of non-empty-storage account test ([#948](https://github.com/ethereum/execution-spec-tests/pull/948))
- ✨ [EIP-7742: Uncouple blob count between CL and EL](https://eips.ethereum.org/EIPS/eip-7742) initial test cases ([#986](https://github.com/ethereum/execution-spec-tests/pull/986))

### 🛠️ Framework

Expand Down
14 changes: 0 additions & 14 deletions src/ethereum_test_forks/forks/forks.py
Original file line number Diff line number Diff line change
Expand Up @@ -1244,20 +1244,6 @@ def header_requests_required(cls, block_number: int, timestamp: int) -> bool:
"""
return True

@classmethod
def target_blobs_per_block(cls, block_number: int, timestamp: int) -> int:
"""
Blobs are decoupled from EL at Prague, and gets a static target of 6 blobs from the CL.
"""
return 6

@classmethod
def max_blobs_per_block(cls, block_number: int, timestamp: int) -> int:
"""
Blobs are decoupled from EL at Prague, and gets static max of 9 blobs from the CL.
"""
return 9

@classmethod
def header_target_blobs_per_block_required(
cls,
Expand Down
4 changes: 2 additions & 2 deletions tests/cancun/eip4844_blobs/test_blob_txs.py
Original file line number Diff line number Diff line change
Expand Up @@ -739,7 +739,7 @@ def test_invalid_normal_gas(
"tx_error", [TransactionException.TYPE_3_TX_MAX_BLOB_GAS_ALLOWANCE_EXCEEDED], ids=[""]
)
@pytest.mark.valid_from("Cancun")
@pytest.mark.valid_until("Prague")
@pytest.mark.valid_until("Cancun")
def test_invalid_block_blob_count(
blockchain_test: BlockchainTestFiller,
pre: Alloc,
Expand Down Expand Up @@ -1010,7 +1010,7 @@ def test_insufficient_balance_blob_tx_combinations(
ids=["too_few_blobs", "too_many_blobs"],
)
@pytest.mark.valid_from("Cancun")
@pytest.mark.valid_until("Prague")
@pytest.mark.valid_until("Cancun")
def test_invalid_tx_blob_count(
state_test: StateTestFiller,
state_env: Environment,
Expand Down
3 changes: 3 additions & 0 deletions tests/prague/eip7742_uncouple_blob_count/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
"""
Cross-client EIP-7742 Tests.
"""
Loading
Loading