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

Parse genesis file to create a Chain object #2019

Open
carver opened this issue Aug 27, 2021 · 2 comments
Open

Parse genesis file to create a Chain object #2019

carver opened this issue Aug 27, 2021 · 2 comments
Assignees

Comments

@carver
Copy link
Contributor

carver commented Aug 27, 2021

What is wrong?

Would be ideal to be able to create a Chain object from a genesis file. This implementation already exists in Trinity, but more reasonably belongs in py-evm. Tools like eth-tester would benefit from this functionality. See user request at: ethereum/web3.py#1677 (inspired by desire to set the chain ID for an eth-tester chain)

How can it be fixed

Import the same logic from Trinity's trinity/_utils/eip1085.py. (and presumably there are tests in Trinity that can be ported in)

@carver
Copy link
Contributor Author

carver commented Aug 27, 2021

@kclowes I guess you're probably blocked on Felipe for London work anyway, so maybe you could start on this?

@kclowes
Copy link
Collaborator

kclowes commented Aug 27, 2021

I'll take a look on Monday!

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

2 participants