Skip to content

Test Block Access Lists Max Sloads

Documentation for tests/benchmark/stateful/eip7928_block_level_access_lists/test_block_access_lists_max_sloads.py@892e6d1e.

Generate fixtures for these test cases for Amsterdam with:

fill -v tests/benchmark/stateful/eip7928_block_level_access_lists/test_block_access_lists_max_sloads.py --gas-benchmark-values 1

Tests for EIP-7928 BAL with maximum SLOAD transactions.

Deploys a loop-based contract that reads its starting cursor from storage, then SLOADs sequential slots until remaining gas drops below a threshold. The updated cursor is written back, creating inter-transaction dependencies that require the BAL for parallel execution.

Parametrized over direction: forward (ascending slots) and reverse (descending slots) to prevent direction-specific optimizations.

Test Functions Overview

Name Type Cases (Amsterdam) Description
test_bal_max_sloads benchmark_test 2 Test BAL with maximum sequential SLOADs via cursor.