-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
fix: use in memory state for state_by_block_number_or_tag #10152
Conversation
let hash = self | ||
.canonical_in_memory_state | ||
.hash_by_number(num) | ||
.ok_or_else(|| ProviderError::HeaderNotFound(num.into()))?; |
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.
this only looks at the tree but could also be an older block on disk
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.
ah right
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.
now uses block_hash
bb20c40
to
e06d007
Compare
Previously this would only look at the database, when we may want to look in memory for state. For example, in
eth_getStorageAt
we use this method. The auto implementation is removed, and implemented directly on the old tree. The new tree now usesstate_by_block_hash
.This fixes numerous
cancun/
tests