Skip to content
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(op): storage root isthmus #13214

Closed
wants to merge 11 commits into from
Closed

feat(op): storage root isthmus #13214

wants to merge 11 commits into from

Conversation

emhane
Copy link
Member

@emhane emhane commented Dec 7, 2024

@emhane emhane added A-consensus Related to the consensus engine A-block-building Related to block building A-op-reth Related to Optimism and op-reth labels Dec 7, 2024
@emhane emhane marked this pull request as draft December 7, 2024 19:13
@emhane emhane marked this pull request as ready for review December 9, 2024 18:31
Copy link
Collaborator

@mattsse mattsse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd like to integrate this in two steps

add the isthmus checks as standalone functions, and then figure out where we need to invoke them

crates/consensus/consensus/src/lib.rs Show resolved Hide resolved
Comment on lines +115 to +116
if self.chain_spec.is_isthmus_active_at_timestamp(block.timestamp) {
let storage_root_msg_passer = self
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is problematic in this function,

because we use this when we validate a downloaded block, and accessing the latest state on disk might not exists.

need to figure out how to make this work.

could we in this pr introduce the isthmus check as a standalone function only and figure out where we actually need to check this separately?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment on lines +988 to +992
impl<N: NodeTypesWithDB> fmt::Debug for BlockchainProvider<N> {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
f.debug_struct("BlockchainProvider").finish_non_exhaustive()
}
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe submit as separate pr?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@emhane
Copy link
Member Author

emhane commented Jan 6, 2025

closing, storage root verification needs to happen in execution to be possible in batch execution

@emhane emhane closed this Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-block-building Related to block building A-consensus Related to the consensus engine A-op-reth Related to Optimism and op-reth
Projects
None yet
Development

Successfully merging this pull request may close these issues.

L2ToL1MessagePasser
2 participants