Skip to content

Commit 429079c

Browse files
spencer-tbmarioevz
andauthored
feat(tests): add bpo blob reserve price transition tests. (#2035)
Co-authored-by: Mario Vega <[email protected]>
1 parent 6fd90a8 commit 429079c

File tree

2 files changed

+669
-0
lines changed

2 files changed

+669
-0
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
"""
2+
abstract: [EIP-7918: Blob base fee bounded by execution cost](https://eips.ethereum.org/EIPS/eip-7918)
3+
Test the blob base fee reserve price mechanism for [EIP-7918: Blob base fee bounded by execution cost](https://eips.ethereum.org/EIPS/eip-7918).
4+
5+
""" # noqa: E501
6+
7+
import pytest
8+
9+
from ethereum_test_tools import (
10+
Alloc,
11+
Block,
12+
BlockchainTestFiller,
13+
Environment,
14+
)
15+
16+
from .spec import ref_spec_7918
17+
18+
REFERENCE_SPEC_GIT_PATH = ref_spec_7918.git_path
19+
REFERENCE_SPEC_VERSION = ref_spec_7918.version
20+
21+
22+
@pytest.mark.valid_at_transition_to("BPO1")
23+
@pytest.mark.valid_for_bpo_forks()
24+
@pytest.mark.parametrize("parent_excess_blobs", [27])
25+
@pytest.mark.parametrize("block_base_fee_per_gas", [17])
26+
def test_blob_base_fee_with_bpo_transition(
27+
blockchain_test: BlockchainTestFiller,
28+
pre: Alloc,
29+
env: Environment,
30+
):
31+
"""Test BPO1 transition with EIP-7918 reserve mechanism."""
32+
blockchain_test(
33+
genesis_environment=env,
34+
pre=pre,
35+
blocks=[Block(timestamp=15_000)],
36+
post={},
37+
)

0 commit comments

Comments
 (0)