-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Fjord: Implement max sequencer drift change to a constant #10465
Conversation
WalkthroughWalkthroughThe recent updates streamline the management of maximum sequencer drift by consolidating it within the Changes
Recent Review DetailsConfiguration used: .coderabbit.yml Files selected for processing (1)
Additional comments not posted (2)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
prepare to allow for general modification of rollup config
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.
Actionable comments posted: 0
Out of diff range and nitpick comments (2)
op-node/rollup/driver/origin_selector_test.go (1)
180-182
: Consider adding a docstring foru64ptr
.Adding a brief docstring to the
u64ptr
function would improve code readability and maintainability by explaining its purpose and usage.op-node/rollup/derive/batches_test.go (1)
27-29
: Consider adding more detailed comments for the fieldsExpectedLog
andNotExpectedLog
to clarify their usage in the context of these tests.
Co-authored-by: Joshua Gutow <jgutow@oplabs.co>
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.
Actionable comments posted: 2
Out of diff range and nitpick comments (2)
op-node/rollup/derive/batches_test.go (2)
27-29
: Introduce documentation for theConfigMod
field inValidBatchTestCase
.It would be beneficial to add a comment explaining the purpose of the
ConfigMod
field in theValidBatchTestCase
struct. This helps maintain clarity and understandability, especially for new contributors or when revisiting the code after some time.
Line range hint
124-221
: Review the logic for time calculations in L2 block references.The time calculations for L2 block references (e.g.,
l2A0.Time + defaultBlockTime
) are critical for ensuring the correct sequencing and timing of blocks. It's important to verify that these calculations correctly implement the intended logic, especially in the context of changes related to sequencer drift handling.
Description
Changes the max sequencer drift from a rollup config parameter to a constant, as part of the upcoming Fjord protocol upgrade.
Tests
I've used the new
ChainSpec
to implement this change, and added a test for it.Added two tests to the batch validation and l1 origin selector that it correctly behaves with the Fjord seq drift.
Additional context
Also see specs.
Metadata