Skip to content

Commit 87ce9e3

Browse files
committed
tests: Blocks can't have a timestamp of zero.
1 parent c4a3d28 commit 87ce9e3

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

tests/cancun/eip4788_beacon_root/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
@pytest.fixture
2929
def timestamp() -> int: # noqa: D103
30-
return 0
30+
return 12
3131

3232

3333
@pytest.fixture

tests/cancun/eip4788_beacon_root/test_beacon_root_precompile.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ def test_beacon_root_precompile_calls(
103103
@pytest.mark.parametrize(
104104
"timestamp, valid_input",
105105
[
106-
(0x00, True), # zero
107106
(0x0C, True), # twelve
108107
(2**32, True), # arbitrary
109108
(2**64 - 2, True), # near-max
@@ -141,7 +140,6 @@ def test_beacon_root_precompile_timestamps(
141140
@pytest.mark.parametrize(
142141
"beacon_root, timestamp",
143142
[
144-
(0, 0), # zero
145143
(12, 12), # twelve
146144
(2**32, 2**32), # arbitrary
147145
(2**64 - 2, 2**64 - 2), # near-max
@@ -182,7 +180,6 @@ def test_beacon_root_equal_to_timestamp(
182180
@pytest.mark.parametrize(
183181
"timestamp",
184182
[
185-
0, # zero
186183
12, # twelve
187184
2**32, # arbitrary
188185
2**64 - 2, # near-max
@@ -207,7 +204,8 @@ def test_beacon_root_tx_timestamp_collisions(
207204
The expected result is that precompile call will return an equal `parent_beacon_block_root`
208205
for each timestamp used within the call, as the timestamp index used will be the same.
209206
210-
Here we are predomintely testing the `timestamp_index` function within the evm.
207+
Here we are predomintely testing that the `timestamp_index` and `root_index` are derived
208+
correctly in the evm.
211209
"""
212210
post = {}
213211
txs, colliding_timestamps = [], []

0 commit comments

Comments
 (0)