Skip to content

test_empty_block()

Documentation for tests/benchmark/compute/scenario/test_transaction_types.py::test_empty_block@892e6d1e.

Generate fixtures for these test cases for Amsterdam with:

fill -v tests/benchmark/compute/scenario/test_transaction_types.py::test_empty_block --gas-benchmark-values 1

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

Source code in tests/benchmark/compute/scenario/test_transaction_types.py
25
26
27
28
29
30
31
32
def test_empty_block(
    benchmark_test: BenchmarkTestFiller,
) -> None:
    """Test running an empty block as a baseline for fixed proving costs."""
    benchmark_test(
        blocks=[Block(txs=[])],
        expected_benchmark_gas_used=0,
    )

Parametrized Test Cases

This test generates 1 parametrized test case across 3 forks.