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

Allow py-evm backend to use a custom VM #191

Merged
merged 3 commits into from
Jun 1, 2020

Conversation

ralexstokes
Copy link
Member

What was wrong?

The py-evm backend was hardcoded to use the latest VM ruleset. This makes it difficult to experiment with or test future forks using this library.

How was it fixed?

A custom VM class can now be passed to the py-evm backend constructor.

Cute Animal Picture

Cute animal picture

@carver
Copy link
Contributor

carver commented May 29, 2020

I was going to say that this fixes #106, but I think supporting a genesis file was the conclusion there, so this would be a half-measure to get there.

Copy link
Contributor

@carver carver left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Maybe a quick test that the vm configuration is set with the correct class? tests/backends/test_pyevm.py

Copy link
Member Author

@ralexstokes ralexstokes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks great, i think the additional comments and tests add a lot from the original!

@carver carver merged commit e7a3fbf into ethereum:master Jun 1, 2020
@ralexstokes ralexstokes deleted the custom-ruleset branch June 2, 2020 19:02
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

Successfully merging this pull request may close these issues.

2 participants