Skip to content

test_empty_block()

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

Generate fixtures for these test cases for Osaka with:

fill -v tests/benchmark/test_worst_compute.py::test_empty_block --fork Osaka

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

Source code in tests/benchmark/test_worst_compute.py
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
@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."""
    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_Cancun-blockchain_test
...fork_Prague-blockchain_test
...fork_Osaka-blockchain_test