Skip to content

Conversation

@varun-doshi
Copy link

@varun-doshi varun-doshi commented Oct 16, 2025

Fixes #215

Copy link
Collaborator

@meyer9 meyer9 left a 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

Comment on lines 103 to 107
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
Copy link
Collaborator

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.

Copy link
Collaborator

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.

@meyer9 meyer9 added K-feature Kind: feature A-db Area: database W-historical-proofs Workstream: historical-proofs labels Oct 16, 2025
@emhane emhane enabled auto-merge October 17, 2025 10:10
@emhane emhane added this pull request to the merge queue Oct 17, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Oct 17, 2025
@dhyaniarun1993
Copy link
Collaborator

Seems like crate-check is taking too long to run and is getting cancelled. Force pushing the PR.

@dhyaniarun1993 dhyaniarun1993 merged commit 90bb257 into op-rs:unstable Oct 17, 2025
40 checks passed
emhane pushed a commit that referenced this pull request Oct 20, 2025
meyer9 pushed a commit that referenced this pull request Oct 31, 2025
emhane pushed a commit that referenced this pull request Nov 11, 2025
meyer9 pushed a commit that referenced this pull request Nov 13, 2025
emhane pushed a commit that referenced this pull request Nov 18, 2025
emhane pushed a commit that referenced this pull request Nov 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-db Area: database K-feature Kind: feature W-historical-proofs Workstream: historical-proofs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[MDBX] Implement earliest and latest block tracking in storage

4 participants