diff options
author | Yoichi Hirai <i@yoichihirai.com> | 2018-04-14 00:43:54 +0800 |
---|---|---|
committer | Yoichi Hirai <i@yoichihirai.com> | 2018-04-14 00:43:54 +0800 |
commit | 6546901ec80990601b8efe3d802fcd20467362ac (patch) | |
tree | 0f5cb5a625be5d7245955333e7bc71f3f7315d30 /src/VMTestsFiller | |
parent | 4faa8c5dec2e81d8df12cd3dc6b780b521e98967 (diff) | |
download | tangerine-tests-6546901ec80990601b8efe3d802fcd20467362ac.tar tangerine-tests-6546901ec80990601b8efe3d802fcd20467362ac.tar.gz tangerine-tests-6546901ec80990601b8efe3d802fcd20467362ac.tar.bz2 tangerine-tests-6546901ec80990601b8efe3d802fcd20467362ac.tar.lz tangerine-tests-6546901ec80990601b8efe3d802fcd20467362ac.tar.xz tangerine-tests-6546901ec80990601b8efe3d802fcd20467362ac.tar.zst tangerine-tests-6546901ec80990601b8efe3d802fcd20467362ac.zip |
Add a list of instructions to avoid in VM tests.
Diffstat (limited to 'src/VMTestsFiller')
-rw-r--r-- | src/VMTestsFiller/README.md | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/VMTestsFiller/README.md b/src/VMTestsFiller/README.md new file mode 100644 index 000000000..90ea45cb9 --- /dev/null +++ b/src/VMTestsFiller/README.md @@ -0,0 +1,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).
\ No newline at end of file |