aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYoichi Hirai <i@yoichihirai.com>2018-04-14 00:43:54 +0800
committerYoichi Hirai <i@yoichihirai.com>2018-04-14 00:43:54 +0800
commit6546901ec80990601b8efe3d802fcd20467362ac (patch)
tree0f5cb5a625be5d7245955333e7bc71f3f7315d30
parent4faa8c5dec2e81d8df12cd3dc6b780b521e98967 (diff)
downloadtangerine-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.
-rw-r--r--src/VMTestsFiller/README.md21
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