-
Notifications
You must be signed in to change notification settings - Fork 459
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
refactor state and storage behind one interface #5659
Conversation
@LukaszRozmej @Scooletz now worldState delegates to internal classes StateProvider PersistentStorageProvider TransientStorageProvider |
4d50f85
to
af63cd0
Compare
@@ -332,7 +332,7 @@ private static async Task RunBenchmarkBlocks() | |||
if (allocation.Code != null) | |||
{ | |||
Keccak codeHash = stateProvider.UpdateCode(allocation.Code); | |||
stateProvider.UpdateCodeHash(address, codeHash, specProvider.GenesisSpec); | |||
stateProvider.InsertCode(address, codeHash, specProvider.GenesisSpec); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't the second param the code itself?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ahh, yes - my bad
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
which solution is this a part of? i cant find the file in any solution
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have you tested on mainnet?
yes, works fine! |
Resolves #5329
Replaces #5533
some interface and API changes for integrating verkle trees with nethermind.
Also, bring state access under limited interfaces across the solution.
Changes
Types of changes
What types of changes does your code introduce?
Testing
Requires testing
If yes, did you write tests?
Notes on testing
synced a node using snap sync and let it run for a few hours after syncing - everything looked normal