-
Notifications
You must be signed in to change notification settings - Fork 7
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(driver): standalone driver context #77
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.
Overall great work
crates/rollup/src/driver/cursor.rs
Outdated
/// When the L1 undergoes a reorg, we need to reset the cursor to the fork block. | ||
/// This is the last L1 block for which we have a corresponding L2 block in the cache. | ||
/// | ||
/// Returns the (L2 block info, L1 origin block info) tuple for the new cursor state. | ||
pub fn reset(&mut self, fork_block: u64) -> (BlockInfo, BlockInfo) { |
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.
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.
If I'm understanding this right, the way this reset works is it's trying to get the (L1 origin, L2 block) pair prior to the reorg and then start derivation for the next l2 blocks from there.
15221cd
to
b5386e3
Compare
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 think it's ok to start with this for now and improve it incrementally.
b5386e3
to
b92ccc5
Compare
This PR fixes all dependency-related compile errors, mainly due to changes to location of types in different crates. It also pins `op-alloy`, `kona` and `superchain` deps allow us to work on a stable trunk until the type migration is done. Also removed `ssz_rs` in favor of `ethereum_ssz`, as with the new alloy version we can't access it from `private::`. - closes #83 Stack: - #77 - 👉 #85 - #86
Overview
Introduces a
StandaloneDriver
implementation that uses an L1 rpc url to fetch block updates.Meta