patch(node/conductor): patch conductor bootstrap#2589
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR fixes the sync start RPC functionality for the node conductor by addressing an issue where the engine unsafe head was zeroed out before syncing. The fix retrieves the unsafe head from the L1 safe head when the node hasn't synced yet and isn't connected to an external sequencer.
Key changes:
- Added logic to detect and handle zeroed unsafe head in engine queries
- Created a new constructor for
EngineSyncStateto facilitate state updates - Added a new test configuration for conductor functionality
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
crates/node/engine/src/query.rs |
Added sync start fix by checking for zeroed unsafe head and retrieving forkchoice state from L1 |
crates/node/engine/src/state/core.rs |
Added new constructor for EngineSyncState to support state initialization |
tests/devnets/first-kona-conductor.yaml |
Added new test configuration for conductor functionality with multiple sequencers |
.github/workflows/e2e_tests.yaml |
Added the new conductor test configuration to the CI pipeline |
Comments suppressed due to low confidence (1)
crates/node/engine/src/query.rs:92
- [nitpick] The field name
un_safeis inconsistent with typical Rust naming conventions. Consider usingunsafe_headorunsafe_blockfor clarity.
forkchoice_state.un_safe,
Codecov Report✅ All modified and coverable lines are covered by tests. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
4062ea7 to
ba4eaf2
Compare
## Overview Allows for the sequencer to catch up by building the next block immediately if the next L2 block timestamp is > the block time away from the system time.
9bf4ade to
bbbb151
Compare
bbbb151 to
e4cb236
Compare
## Description Close op-rs/kona#2571 --------- Co-authored-by: clabby <ben@clab.by>
## Description Close #2571 --------- Co-authored-by: clabby <ben@clab.by>
Description
Close #2571