Skip to content

test_empty_block()

Documentation for tests/zkevm/test_worst_compute.py::test_empty_block@64f949d0.

Generate fixtures for these test cases for Prague with:

fill -v tests/zkevm/test_worst_compute.py::test_empty_block --fork Prague

Test running an empty block as a baseline for fixed proving costs.

Source code in tests/zkevm/test_worst_compute.py
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
@pytest.mark.valid_from("Cancun")
def test_empty_block(
    blockchain_test: BlockchainTestFiller,
    pre: Alloc,
):
    """Test running an empty block as a baseline for fixed proving costs."""
    env = Environment()

    blockchain_test(
        env=env,
        pre=pre,
        post={},
        blocks=[Block(txs=[])],
    )

Parametrized Test Cases

This test case is only parametrized by fork.

Test ID (Abbreviated)
...fork_Cancun-blockchain_test
...fork_Prague-blockchain_test
...fork_Osaka-blockchain_test