Skip to content

Test Block Hashes

Documentation for tests/prague/eip2935_historical_block_hashes_from_state/test_block_hashes.py@49c766fb.

Generate fixtures for these test cases for Prague with:

fill -v tests/prague/eip2935_historical_block_hashes_from_state/test_block_hashes.py --fork Prague

Test Functions Overview

Name Type Cases (Prague) Description
test_block_hashes_history_at_transition blockchain_test 0 Tests that block hashes are stored correctly at the system contract address after the fork
test_block_hashes_history blockchain_test 5 Tests that block hashes are stored correctly at the system contract address after the fork
test_invalid_history_contract_calls blockchain_test 4 Test calling the history contract with invalid block numbers, such as blocks from the future