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

Add dedicated Optimism Storage impl #14654

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

programskillforverification
Copy link
Contributor

close #14652

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.

good start, almost there

Comment on lines 11 to 13
/// Trait that implements how block bodies are written to the storage.
#[auto_impl::auto_impl(&, Arc)]
pub(crate) trait BlockBodyWriter<Provider, Body: BlockBody> {
Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't think we need to duplicate those traits?

can we not import:

pub trait BlockBodyReader<Provider> {

) -> ProviderResult<Vec<<Self::Block as Block>::Body>> {
let chain_spec = provider.chain_spec();

let mut withdrawals_cursor = provider.tx_ref().cursor_read::<tables::BlockWithdrawals>()?;
Copy link
Collaborator

Choose a reason for hiding this comment

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

this we can also optimize and only apply the shanghai is active check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add dedicated Optimism Storage impl
2 participants