-
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
feat: add get_in_memory_or_storage_by_tx_range
#11414
Conversation
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 is pretty cursed but I believe all these checks are correct, the docs are very helpful
let provider = self.database.provider()?; | ||
|
||
// Get the last block number stored in the storage which does NOT overlap with in-memory | ||
// chain. |
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.
in other words, this ensures that the chain on disk and memory don't overlap but are contiguous
Our
_by_tx_range
were only looking into persistent storage and not memory. closes #10182get_in_memory_or_storage_by_tx_range