Skip to content

Test Block Access Lists INVALID

Documentation for tests/amsterdam/eip7928_block_level_access_lists/test_block_access_lists_invalid.py@622620d8.

Generate fixtures for these test cases for Amsterdam with:

fill -v tests/amsterdam/eip7928_block_level_access_lists/test_block_access_lists_invalid.py --fork Amsterdam

Test cases for invalid Block Access Lists.

These tests verify that clients properly reject blocks with corrupted BALs.

Test Functions Overview

Name Type Cases (Amsterdam) Description
test_bal_invalid_account blockchain_test 1 Test that clients reject blocks where BAL contains accounts that don't
test_bal_invalid_account_order blockchain_test 1 Test that clients reject blocks where BAL has incorrect account ordering.
test_bal_invalid_balance_value blockchain_test 1 Test that clients reject blocks where BAL contains incorrect balance value.
test_bal_invalid_coinbase_balance_value blockchain_test 1 Test that clients reject blocks where BAL contains an incorrect
test_bal_invalid_complex_corruption blockchain_test 1 Test complex BAL corruption with multiple transformations.
test_bal_invalid_duplicate_account blockchain_test 1 Test that clients reject blocks where BAL contains duplicate account
test_bal_invalid_duplicate_entries blockchain_test 7 Test that clients reject blocks where BAL contains duplicate entries.
test_bal_invalid_empty_slot_changes blockchain_test 2 Reject BAL containing a SlotChanges with an empty slot_changes list.
test_bal_invalid_extraneous_coinbase blockchain_test 2 Test that clients reject blocks where BAL contains a spurious
test_bal_invalid_extraneous_entries blockchain_test 24 Test that clients reject blocks where BAL contains extraneous entries.
test_bal_invalid_field_entries blockchain_test 4 Test that clients reject blocks with missing or incorrect
test_bal_invalid_hash_mismatch blockchain_test 1 Test that clients reject blocks where the BAL hash in the header
test_bal_invalid_missing_account blockchain_test 2 Test that clients reject blocks where BAL omits an account that was
test_bal_invalid_missing_coinbase blockchain_test 1 Test that clients reject blocks where BAL is missing the
test_bal_invalid_missing_created_code blockchain_test 1 Test that clients reject a BAL that omits the deployed code of a
test_bal_invalid_missing_nonce blockchain_test 1 Test that clients reject blocks where BAL is missing required nonce
test_bal_invalid_missing_pre_block_system_call_read blockchain_test 1 Reject a BAL that drops the storage read made by the pre-execution
test_bal_invalid_missing_request_predeploy_accesses blockchain_test 8 Reject a BAL that hides the queue slots the post-execution system call
test_bal_invalid_missing_storage_write blockchain_test 1 Test that clients reject a BAL that omits a storage write that was
test_bal_invalid_missing_system_contract_entry blockchain_test 2 Reject a BAL that omits a system contract written by a pre-execution
test_bal_invalid_missing_withdrawal_account blockchain_test 1 Test that clients reject blocks where BAL is missing an account
test_bal_invalid_missing_withdrawal_account_empty_block blockchain_test 3 Test that clients reject blocks where BAL is missing a withdrawal
test_bal_invalid_nonce_value blockchain_test 1 Test that clients reject blocks where BAL contains incorrect nonce value.
test_bal_invalid_noop_storage_change blockchain_test 1 Test that clients reject a BAL storage change whose post-value equals
test_bal_invalid_noop_value_change blockchain_test 3 Test that clients reject a BAL balance/nonce/code change entry whose
test_bal_invalid_omitted_slot_change_at_index blockchain_test 1 Test that clients reject a BAL that drops a slot's earlier change
test_bal_invalid_phantom_read_on_selfdestruct blockchain_test 1 Test that clients reject a BAL with a phantom storage read for an
test_bal_invalid_storage_value blockchain_test 1 Test that clients reject blocks where BAL contains incorrect storage
test_bal_invalid_surplus_system_address_from_system_call blockchain_test 1 Test that clients reject a BAL that includes SYSTEM_ADDRESS solely because
test_bal_invalid_tx_order blockchain_test 1 Test that clients reject blocks where BAL has incorrect transaction
test_bal_invalid_withdrawal_balance_value blockchain_test 1 Test that clients reject blocks where BAL contains an incorrect