-
Notifications
You must be signed in to change notification settings - Fork 759
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
Group opcodes based on HF #543
Comments
I already once thought about grouping opcodes statically into |
I like this idea. Should it be based on |
I would have a tendency to add this to |
Yeah, I wouldn't move this to Another one is how py-evm does things, e.g. having an initial set of opcodes (from genesis, or the first supported HF), and a new set for each subsequent HF which takes the previous set and updates it. |
I like this. It shouldn't be that hard to implement in js/ts. Right? |
I don't see any difficulty. Maybe we could develop both approaches in two branches and compare them. I think the second one is more flexible, but not sure if it's an overkill |
Hey guys! My implementation is probably going to clash a bit with Spurious Dragon HF support PR (@holgerd77). I have two points I'd like to raise here: In The easiest way to implement this is to just edit Thoughts? @alcuadrado @s1na |
Actually, for opcodes like |
@jochem-brouwer No worry, will rebase on top. Have already answered here on the gas cost consolidation suggestion, think this makes a lot of sense. @jochem-brouwer yes, it is likely that there are some historical inconsistencies (like |
Currently HF validation happens inside the logic of an opcode handler. @yann300 mentioned it'd be helpful if one could get the list of opcodes for a particular HF. We could add a
validSince
attribute toOpInfo
which specifies since which HF this opcode is valid, and perform the check inLoop
instead of logic of the ophandler.The text was updated successfully, but these errors were encountered: