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

Use custom state manager as a temporal fix to a bug in DefaultStateManager #1406

Merged
merged 2 commits into from
Apr 15, 2021

Conversation

alcuadrado
Copy link
Member

This PR adds a new HardhatStateManager, based off ForkStateManager, which keeps everything in memory in a flat structure (i.e. no MPTs involved). This means that our blocks always have an incorrect state root now. Before this PR this only happened when forking.

ForkStateManager doesn't support hardforks before Spurious Dragon, as it's not possible to do that when fetching the accounts via the rpc. We kept the same limitation in HardhatStateManager to avoid introducing extra complexity, so we also forbid older hardforks in the config.

This change should be reverted soon, once DefaultStateManager gets fixed.

@alcuadrado alcuadrado merged commit be4c764 into master Apr 15, 2021
@alcuadrado alcuadrado deleted the custom-state-manager branch April 15, 2021 16:19
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 18, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants