-
Notifications
You must be signed in to change notification settings - Fork 133
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
Better API for initializing with genesis parameters #129
Comments
I need this feature. I will write docs for it but I don't have bandwidth for the next two weeks. |
cool. I'll wait for ethereum/py-evm#1299 to land then! |
@voith wanted to let you know that currently #1299 is stalled out and likely to still take a while before it gets closed. |
Still something happening on this? |
We do have the APIs now to initialize from a EIP1085 compatible genesis file but these APIs do currently live within Trinity. I actually think it may make sense to check which parts of it may better belong into py-evm so that this becomes more reusable outside of Trinity. |
* `sphinx-autobuild` for live docs updates. * Use Python 3.9 and `sphinx-autobuild` `2024.2.4`
What was wrong?
As of #123 there will be a way to specify genesis parameters, but it will take some detailed documentation to understand, and the variety of options will probably confuse beginners. (Thanks to @voith for offering to write the docs)
Let's reduce the ways to initialize the backend with custom genesis parameters, and do it in a way that leans more on the global standards (like the genesis file, which may only be a "de facto" standard, but still better than a custom web3.py thing).
How can it be fixed?
Let's can coalesce around this as the preferred single mechanism for initializing a custom genesis state:
We should further explore what use cases people have for setting up custom genesis, but I think we can handle them all cleanly by creating tools to easily generate a genesis
dict
.The following APIs are shooting from the hip, I'm not saying that any specific one is a good idea. Just some examples...
or
How cool is it that the same tools could be used to generate a genesis file for any other node?! Speaking of which, maybe these generation tools already exist somewhere else?
The text was updated successfully, but these errors were encountered: