Skip to content
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

JumpTable customization #22

Open
darioush opened this issue Sep 13, 2024 · 0 comments
Open

JumpTable customization #22

darioush opened this issue Sep 13, 2024 · 0 comments

Comments

@darioush
Copy link
Collaborator

Rationale

Subnet-evm and coreth both include modifications to the jump table which activate at different forks.

In addition to type-safety and being mindful of package import order, an additional challenge here is that defining new opcodes would likely need access to unexported types & identifiers from the core/vm package.
(See this PR for examples of extensions used in coreth)

Implementation

A hacky implementation (non-type safe, and implements extensions in the core/vm package which is not ideal): https://github.com/ava-labs/go-ethereum/pull/11/files#diff-9c1fde428c6130ced0ba724d0f195562f64913291362ea0fcb6cefcdd6e16d42

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant