Skip to content

Commit 52df57a

Browse files
jsignCarsons-Eels
authored andcommitted
zkevm: add empty block execution (ethereum#1650)
Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>
1 parent 6512f1e commit 52df57a

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

tests/zkevm/test_worst_compute.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -938,3 +938,20 @@ def test_worst_mod(
938938
post={},
939939
blocks=[Block(txs=[tx])],
940940
)
941+
942+
943+
@pytest.mark.valid_from("Cancun")
944+
def test_empty_block(
945+
blockchain_test: BlockchainTestFiller,
946+
pre: Alloc,
947+
fork: Fork,
948+
):
949+
"""Test running an empty block as a baseline for fixed proving costs."""
950+
env = Environment()
951+
952+
blockchain_test(
953+
env=env,
954+
pre=pre,
955+
post={},
956+
blocks=[Block(txs=[])],
957+
)

0 commit comments

Comments
 (0)