Skip to content

test_empty_block()

Documentation for tests/benchmark/test_worst_compute.py::test_empty_block@v5.1.0.

Generate fixtures for these test cases for Osaka with:

fill -v tests/benchmark/test_worst_compute.py::test_empty_block -m benchmark

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

Source code in tests/benchmark/test_worst_compute.py
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
def test_empty_block(
    blockchain_test: BlockchainTestFiller,
    pre: Alloc,
):
    """Test running an empty block as a baseline for fixed proving costs."""
    blockchain_test(
        pre=pre,
        post={},
        blocks=[Block(txs=[])],
        expected_benchmark_gas_used=0,
    )

Parametrized Test Cases

This test case is only parametrized by fork.

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