Skip to content

Test Block Context

Documentation for tests/benchmark/compute/instruction/test_block_context.py@8db70f93.

Generate fixtures for these test cases for Amsterdam with:

fill -v tests/benchmark/compute/instruction/test_block_context.py --gas-benchmark-values 1

Benchmark block context instructions.

Supported Opcodes: - BLOCKHASH - COINBASE - TIMESTAMP - NUMBER - PREVRANDAO - GASLIMIT - CHAINID - BASEFEE - BLOBBASEFEE

Test Functions Overview

Name Type Cases (Amsterdam) Description
test_blockhash benchmark_test 5 Benchmark BLOCKHASH instruction accessing oldest allowed block.
test_block_context_ops benchmark_test 8 Benchmark zero-parameter block context instructions.