-
Notifications
You must be signed in to change notification settings - Fork 7
feat(MDBX): Implement earliest and latest block tracking in storage #253
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(MDBX): Implement earliest and latest block tracking in storage #253
Conversation
meyer9
left a comment
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.
LG! Just a small comment
crates/optimism/trie/src/db/store.rs
Outdated
| self.get_block_number_hash(ProofWindowKey::EarliestBlock).await | ||
| } | ||
|
|
||
| async fn get_latest_block_number(&self) -> OpProofsStorageResult<Option<(u64, B256)>> { | ||
| unimplemented!() | ||
| self.get_block_number_hash(ProofWindowKey::LatestBlock).await |
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.
For these, can they fall back to the other if it doesn't exist? For example, if there's no latest block, but there is an earliest block, the earliest block is the latest block.
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.
Yep, sounds good. I have updated the code.
|
Seems like |
…253) Fixes #215 --------- Co-authored-by: Arun Dhyani <[email protected]>
…253) Fixes #215 --------- Co-authored-by: Arun Dhyani <[email protected]>
…253) Fixes #215 --------- Co-authored-by: Arun Dhyani <[email protected]>
…253) Fixes #215 --------- Co-authored-by: Arun Dhyani <[email protected]>
…253) Fixes #215 --------- Co-authored-by: Arun Dhyani <[email protected]>
…253) Fixes #215 --------- Co-authored-by: Arun Dhyani <[email protected]>
Fixes #215