-
Notifications
You must be signed in to change notification settings - Fork 319
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove VM tests using the mock BLOCKHASH/BALANCE instruction just for VM tests #444
Remove VM tests using the mock BLOCKHASH/BALANCE instruction just for VM tests #444
Conversation
@pirapira I believe the following tests also use |
I'll have a look into these four, and later modify the vmtest runner in |
Yes, these should be removed too.
|
b6e1266
to
a01bf4a
Compare
And then, 201503120317PYTHON.json uses |
a01bf4a
to
fd7e3a0
Compare
I can detect those VM tests with disallowed instructions using this modified |
How about also removing the |
@matthalp yes, |
@pirapira I think ethereum/aleth#4731 will fix the ambiguities around Could you help me understand what you mean by "fire an error"? Does this just mean that the test case is able to fail if the incorrect behavior occurs? |
Because VM tests are supposed to test one instance of EVM only, and not to access the world state. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so the VM tests are supproted but not for ethereum specific opcodes?
Right. Still VM tests are useful when you are implementing a new VM. |
…quire special-cased codepaths for a VMTest mode by allowing BLOCKHASH-dependent tests to live where actual blockchain state is provided by fixture
…y removing many which rely on mocking BLOCKHASH/BALANCE just for VM tests
…y removing many which rely on mocking BLOCKHASH/BALANCE just for VM tests (#92)
See the discussion #415 (comment)