Skip to main content

validate_block_access_list_size

Function validate_block_access_list_size 

Source
pub fn validate_block_access_list_size(
    header: &BlockHeader,
    chain_config: &ChainConfig,
    computed_bal: &BlockAccessList,
) -> Result<(), InvalidBlockError>
Expand description

Validates that the block access list does not exceed the maximum allowed size (Amsterdam+). Per EIP-7928: bal_items <= block_gas_limit // GAS_BLOCK_ACCESS_LIST_ITEM

Prefer using validate_block_access_list_hash when both hash and size validation are needed, as it performs both checks in a single pass over the BAL.