aboutsummaryrefslogtreecommitdiffstats
path: root/src/VMTestsFiller/README.md
blob: 90ea45cb97678b6befb12ee36c6aa2073ea69435 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
VM tests
========

VM tests test one instance of EVM (which contains one stack of 256-bit words, and one memory space).

Operations accessing the world state should be tested in GeneralStateTests or BlockchainTests instead of in VM tests.

So VM tests should not contain

* `BALANCE`
* `CREATE`
* `CREATE2`
* `CALL`
* `CALLCODE`
* `STATICCALL`
* `DELEGATECALL`
* `EXTCODESIZE`
* `EXTCODECOPY`
* `BLOCKHASH`

Previously, some VM tests contained these, and clients were supposed to implement some mock of the world state (especially, the block hash of a block is supposed to be the hash of the block number).