Skip to content

Test Worst Stateful Opcodes

Documentation for tests/zkevm/test_worst_stateful_opcodes.py@1109bfbe.

Generate fixtures for these test cases for Prague with:

fill -v tests/zkevm/test_worst_stateful_opcodes.py --fork Prague
Tests zkEVMs worst-case stateful opcodes.

Tests zkEVMs worst-case stateful opcodes.

Tests running worst-case stateful opcodes for zkEVMs.

Test Functions Overview

Name Type Cases (Prague) Description
test_worst_address_state_cold blockchain_test 2 Test running a block with as many stateful opcodes accessing cold accounts.
test_worst_address_state_warm state_test 14 Test running a block with as many stateful opcodes doing warm access for an account.
test_worst_storage_access_cold blockchain_test 6 Test running a block with as many cold storage slot accesses as possible.
test_worst_storage_access_warm blockchain_test 3 Test running a block with as many warm storage slot accesses as possible.
test_worst_blockhash blockchain_test 1 Test running a block with as many blockhash accessing oldest allowed block as possible.
test_worst_selfbalance state_test 1 Test running a block with as many SELFBALANCE opcodes as possible.
test_worst_extcodecopy_warm state_test 3 Test running a block with as many wamr EXTCODECOPY work as possible.