Skip to content

Commit 6546901

Browse files
committed
Add a list of instructions to avoid in VM tests.
1 parent 4faa8c5 commit 6546901

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

src/VMTestsFiller/README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
VM tests
2+
========
3+
4+
VM tests test one instance of EVM (which contains one stack of 256-bit words, and one memory space).
5+
6+
Operations accessing the world state should be tested in GeneralStateTests or BlockchainTests instead of in VM tests.
7+
8+
So VM tests should not contain
9+
10+
* `BALANCE`
11+
* `CREATE`
12+
* `CREATE2`
13+
* `CALL`
14+
* `CALLCODE`
15+
* `STATICCALL`
16+
* `DELEGATECALL`
17+
* `EXTCODESIZE`
18+
* `EXTCODECOPY`
19+
* `BLOCKHASH`
20+
21+
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).

0 commit comments

Comments
 (0)