-
Notifications
You must be signed in to change notification settings - Fork 873
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 SHL, SHR and SAR from default EVM #4633
Conversation
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.
Good Catch, we should remove this from the switch or place a guard around the result.
Can we keep the static operation methods in the operation classes? When EVM lands I will want to re-add it with a guard such as seen here for push0
I assume this was missed because legacy forks are not checked in checkin reference tests? |
cb1e9d7
to
7ab17e5
Compare
Yes, hopefully we could run the whole suite from the I reintroduced the static methods, but what do you mean by "remove this from the switch or place a guard around the result"? Didn't I remove those from the proper switch? |
Besu runs almost all tests. It appears to be that some failures are due to the geth t8n version. Minor theoretical issues. |
The linked code shows how I handle activation of Push0 to keep it in the switch. So they would look something like
But some of the framework supporting that is tied up in my EOF branch. |
@shemnon gotcha. Probably this is a discussion for the other PR about EOF, but I think I like the current resolution of operations from a registry and to keep it agnostic of fork names |
These opcodes were introduced in [EIP-145](https://eips.ethereum.org/EIPS/eip-145) Signed-off-by: Diego López León <dieguitoll@gmail.com> Signed-off-by: Diego López León <dieguitoll@gmail.com>
7ab17e5
to
9766f48
Compare
These opcodes were introduced in [EIP-145](https://eips.ethereum.org/EIPS/eip-145) Signed-off-by: Diego López León <dieguitoll@gmail.com> Signed-off-by: wcgcyx <wcgcyx@gmail.com>
These opcodes were introduced in [EIP-145](https://eips.ethereum.org/EIPS/eip-145) Signed-off-by: Diego López León <dieguitoll@gmail.com> Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
These opcodes were introduced in [EIP-145](https://eips.ethereum.org/EIPS/eip-145) Signed-off-by: Diego López León <dieguitoll@gmail.com>
PR description
This PR removes the opcodes
SHL
,SHR
andSAR
from the base EVM b/c those were added in EIP-145 and shouldn't be available since Genesis.Fixed Issue(s)
Spotted by @winsvega during the execution of LegacyTests. E.g.
Documentation
doc-change-required
label to this PR ifupdates are required.
Changelog
Signed-off-by: Diego López León dieguitoll@gmail.com