Skip to main content

validate_block_access_list_hash

Function validate_block_access_list_hash 

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

Validates that the block access list hash matches the block header (Amsterdam+). Also validates that all BlockAccessIndex values are within valid bounds per EIP-7928, and that the BAL size does not exceed the gas-derived limit.