-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
base: main
Are you sure you want to change the base?
Add dedicated Optimism Storage impl #14654
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.
good start, almost there
crates/optimism/storage/src/chain.rs
Outdated
/// Trait that implements how block bodies are written to the storage. | ||
#[auto_impl::auto_impl(&, Arc)] | ||
pub(crate) trait BlockBodyWriter<Provider, Body: BlockBody> { |
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.
I don't think we need to duplicate those traits?
can we not import:
pub trait BlockBodyReader<Provider> { |
crates/optimism/storage/src/chain.rs
Outdated
) -> ProviderResult<Vec<<Self::Block as Block>::Body>> { | ||
let chain_spec = provider.chain_spec(); | ||
|
||
let mut withdrawals_cursor = provider.tx_ref().cursor_read::<tables::BlockWithdrawals>()?; |
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 we can also optimize and only apply the shanghai is active check
13b4935
to
f6a0360
Compare
f6a0360
to
e50c32b
Compare
close #14652