-
Notifications
You must be signed in to change notification settings - Fork 765
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
Genesis stateRoot incorrect for Goerli testnet due to account balances #586
Comments
Thanks for tracking down the problem. As a temporary fix we could strip the |
Yes, at the time we fixed the address formatting but not yet the balances on the Common library. I think this is one of the many open issues on the libraries which is not unimportant but which we can't prioritize right now (this would need another major release on the Common side). So I would also suggest to do the temporary fix @s1na suggested and strip the |
I have found that when using
vm.stateManager.generateCanonicalGenesis
, where the stateManager is specified for the Goerli testnet, the genesis block stateRoot generated is incorrect.The account balance from str -> Buffer in stateManager needs some formatting:
The
initState
account balances from ethereumjs-common is prefixed with '0x' Goerli (not sure if this is a decision for other purposes as they are not for mainnet.The text was updated successfully, but these errors were encountered: