Skip to content

test_valid_max_blobs_per_tx()

Documentation for tests/osaka/eip7594_peerdas/test_max_blob_per_tx.py::test_valid_max_blobs_per_tx@88e9fb8f.

Generate fixtures for these test cases for Osaka with:

fill -v tests/osaka/eip7594_peerdas/test_max_blob_per_tx.py::test_valid_max_blobs_per_tx --fork Osaka

Test that transactions with blob count from 1 to MAX_BLOBS_PER_TX are accepted. Verifies that individual transactions can contain up to the maximum allowed number of blobs per transaction.

Source code in tests/osaka/eip7594_peerdas/test_max_blob_per_tx.py
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
@pytest.mark.parametrize_by_fork(
    "blob_count",
    lambda fork: list(range(1, fork.max_blobs_per_tx() + 1)),
)
@pytest.mark.valid_from("Osaka")
def test_valid_max_blobs_per_tx(
    state_test: StateTestFiller,
    pre: Alloc,
    env: Environment,
    tx: Transaction,
) -> None:
    """
    Test that transactions with blob count from 1 to MAX_BLOBS_PER_TX are
    accepted. Verifies that individual transactions can contain up to the
    maximum allowed number of blobs per transaction.
    """
    state_test(
        env=env,
        pre=pre,
        tx=tx,
        post={},
    )

Parametrized Test Cases

The interactive table below is also available as a standalone page.

Test ID (Abbreviated) blob_count
...fork_Osaka-blob_count_1-state_test 1
...fork_Osaka-blob_count_1-blockchain_test_from_state_test 1
...fork_Osaka-blob_count_2-state_test 2
...fork_Osaka-blob_count_2-blockchain_test_from_state_test 2
...fork_Osaka-blob_count_3-state_test 3
...fork_Osaka-blob_count_3-blockchain_test_from_state_test 3
...fork_Osaka-blob_count_4-state_test 4
...fork_Osaka-blob_count_4-blockchain_test_from_state_test 4
...fork_Osaka-blob_count_5-state_test 5
...fork_Osaka-blob_count_5-blockchain_test_from_state_test 5
...fork_Osaka-blob_count_6-state_test 6
...fork_Osaka-blob_count_6-blockchain_test_from_state_test 6